diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 11:12:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 01:01:21 +0100 |
commit | ef69bb2ec6036945da1d3d3f07b75253f484f693 (patch) | |
tree | ad309906a7b20b0b13b573abfb3be9d524f08086 /crypto | |
parent | CAPI: Rework capi_ctr_ready/down (diff) | |
download | linux-ef69bb2ec6036945da1d3d3f07b75253f484f693.tar.xz linux-ef69bb2ec6036945da1d3d3f07b75253f484f693.zip |
CAPI: Rework controller state notifier
Another step towards proper locking: Rework the callback provided to
capidrv for controller state changes. This is so far attached to an
application, which would require us to hold the corresponding lock
across notification calls.
But there is no direct relation between a controller up/down event and
an application, so let's decouple them and provide a notifier call chain
for those events instead. This notifier chain is first of all used
internally. Here we request the highest priority to unsure that
housekeeping work is done before any other notifications. The chain is
exported via [un]register_capictr_notifier to our only user, capidrv, to
replace the racy and unfixable capi20_set_callback.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions