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>
This commit is contained in:

committed by
David S. Miller

parent
522530311b
commit
9717fb8b64
@@ -238,9 +238,9 @@ static const struct file_operations proc_applstats_ops = {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
|
||||
__acquires(&capi_drivers_list_lock)
|
||||
__acquires(&capi_drivers_lock)
|
||||
{
|
||||
read_lock(&capi_drivers_list_lock);
|
||||
mutex_lock(&capi_drivers_lock);
|
||||
return seq_list_start(&capi_drivers, *pos);
|
||||
}
|
||||
|
||||
@@ -250,9 +250,9 @@ static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos)
|
||||
}
|
||||
|
||||
static void capi_driver_stop(struct seq_file *seq, void *v)
|
||||
__releases(&capi_drivers_list_lock)
|
||||
__releases(&capi_drivers_lock)
|
||||
{
|
||||
read_unlock(&capi_drivers_list_lock);
|
||||
mutex_unlock(&capi_drivers_lock);
|
||||
}
|
||||
|
||||
static int capi_driver_show(struct seq_file *seq, void *v)
|
||||
|
Reference in New Issue
Block a user