diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 05:12:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 19:01:20 -0500 |
commit | 9717fb8b64ed41be9dd074bc8010bafd33046f1a (patch) | |
tree | fb188fea58e7626b3046950de44fb7c551ee00f3 /drivers/isdn/capi/kcapi_proc.c | |
parent | 522530311b35ec8fc4785062441dd2d63967ac55 (diff) |
CAPI: Convert capi drivers rwlock into mutex
Turn the lock protecting registered capi drivers into a mutex and apply
it consistently.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/capi/kcapi_proc.c')
-rw-r--r-- | drivers/isdn/capi/kcapi_proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c index 59fd16a4ad8e..71b07610ff31 100644 --- a/drivers/isdn/capi/kcapi_proc.c +++ b/drivers/isdn/capi/kcapi_proc.c | |||
@@ -238,9 +238,9 @@ static const struct file_operations proc_applstats_ops = { | |||
238 | // --------------------------------------------------------------------------- | 238 | // --------------------------------------------------------------------------- |
239 | 239 | ||
240 | static void *capi_driver_start(struct seq_file *seq, loff_t *pos) | 240 | static void *capi_driver_start(struct seq_file *seq, loff_t *pos) |
241 | __acquires(&capi_drivers_list_lock) | 241 | __acquires(&capi_drivers_lock) |
242 | { | 242 | { |
243 | read_lock(&capi_drivers_list_lock); | 243 | mutex_lock(&capi_drivers_lock); |
244 | return seq_list_start(&capi_drivers, *pos); | 244 | return seq_list_start(&capi_drivers, *pos); |
245 | } | 245 | } |
246 | 246 | ||
@@ -250,9 +250,9 @@ static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) | |||
250 | } | 250 | } |
251 | 251 | ||
252 | static void capi_driver_stop(struct seq_file *seq, void *v) | 252 | static void capi_driver_stop(struct seq_file *seq, void *v) |
253 | __releases(&capi_drivers_list_lock) | 253 | __releases(&capi_drivers_lock) |
254 | { | 254 | { |
255 | read_unlock(&capi_drivers_list_lock); | 255 | mutex_unlock(&capi_drivers_lock); |
256 | } | 256 | } |
257 | 257 | ||
258 | static int capi_driver_show(struct seq_file *seq, void *v) | 258 | static int capi_driver_show(struct seq_file *seq, void *v) |