]> git.baikalelectronics.ru Git - kernel.git/commit
CAPI: Rework locking of controller data structures
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:14 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:22 +0000 (16:01 -0800)
commit8095d6a11329c88fb8355ef3b721bcd33586ddb4
treea739bfb8ddd0c7fcfdcd40ab6fcd990570c716bf
parent4f1da46cda7ca25c0e7b6f70837b3c41e8794b0a
CAPI: Rework locking of controller data structures

This patch applies the mutex so far only protecting the controller list
to (almost) all accesses of controller data structures. It also reworks
waiting on state changes in old_capi_manufacturer so that it no longer
poll and holds a module reference to the controller owner while waiting
(the latter was partly done already). Modification and checking of the
blocked state remains racy by design, the caller is responsible for
dealing with this.

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