diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 10:12:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 16:01:21 -0800 |
commit | ef69bb2ec6036945da1d3d3f07b75253f484f693 (patch) | |
tree | ad309906a7b20b0b13b573abfb3be9d524f08086 /kernel/kthread.c | |
parent | 3efecf7a49cde47e5f2deb1d5504951ff4bede53 (diff) |
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 'kernel/kthread.c')
0 files changed, 0 insertions, 0 deletions