summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2010-02-08 11:12:19 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-17 01:01:24 +0100
commit05b4149433ffae789edaf569da8d998c93eed1aa (patch)
tree3a62d3e63ab2a7f2c0033cc301ed5f1693ca7270 /arch
parentCAPI: Clean up capi_open/release (diff)
downloadlinux-05b4149433ffae789edaf569da8d998c93eed1aa.tar.xz
linux-05b4149433ffae789edaf569da8d998c93eed1aa.zip
CAPI: Rework locking of capidev members
Rename 'ncci_list_mtx' to 'lock', expressing that it now protects a larger set of capidev members: the NCCI list, ap.applid (ie. the registration of the application), and modifications of userflags. We do not need to protect each and every check for ap.applid because, once an application is registered, it will stay for the whole lifetime of the device. Also, there is no need to apply the capidev mutex during release (if there could be concurrent users, we would crash them anyway by freeing the device at the end of capi_release). Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions