USB: cdc-wdm: use two mutexes to allow simultaneous read and write
commitd8e13a17cf397abfdef1d27fe70ad8aeff75ffdd
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 11:41:48 +0000 (16 12:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:02 +0000 (3 09:22 -0800)
treee74afd223e0ad2fc51c8c703af6622ca5c19da87
parent3f60c1956f3392760d3c969f19f41d4aa653f726
USB: cdc-wdm: use two mutexes to allow simultaneous read and write

commit e8537bd2c4f325a4796da33564ddcef9489b7feb upstream.

using a separate read and write mutex for locking is sufficient to make the
driver accept simultaneous read and write. This improves useability a lot.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Cc: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c