USB: cdc-wdm: use two mutexes to allow simultaneous read and write
commite8537bd2c4f325a4796da33564ddcef9489b7feb
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 11:41:48 +0000 (16 12:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:17:29 +0000 (24 12:17 -0800)
tree50d5d643591ed620197c0d7bba8263acb1afba7f
parentc428b70c1e115c5649707a602742e34130d19428
USB: cdc-wdm: use two mutexes to allow simultaneous read and write

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: stable <stable@vger.kernel.org>
Cc: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c