]> bbs.cooldavid.org Git - net-next-2.6.git/commit
CAPI: Silence lockdep warning on get_capi_appl_by_nr usage
authorJan Kiszka <jan.kiszka@web.de>
Sun, 17 Oct 2010 05:18:15 +0000 (05:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 11:25:49 +0000 (04:25 -0700)
commitb003f4e171304234eae9cc11c9fd7f1cbaaf0d6b
treeeb8b14040370ec664c72d8c57fd617a9fe38618f
parent1e253c3b8a1aeed51eef6fc366812f219b97de65
CAPI: Silence lockdep warning on get_capi_appl_by_nr usage

As long as we hold capi_controller_lock, we can safely access
capi_applications without RCU protection as no one can modify the
application list underneath us. Introduce an RCU-free
__get_capi_appl_by_nr for this purpose. This silences lockdep warnings
on suspicious rcu_dereference usage.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/kcapi.c