summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2010-02-08 11:12:13 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-17 01:01:21 +0100
commitef69bb2ec6036945da1d3d3f07b75253f484f693 (patch)
treead309906a7b20b0b13b573abfb3be9d524f08086 /crypto
parentCAPI: Rework capi_ctr_ready/down (diff)
downloadlinux-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