OSDN Git Service

USB: cdc-wdm: use two mutexes to allow simultaneous read and write
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 11:41:48 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:18:59 +0000 (09:18 -0800)
commitc40c07af28b365175593f69a7391a3b6cfd8ac12
tree785008a30d98612ebd4d51331a39f9aec2e13b16
parent906e114c35cd8f98be1f672a2f32c0cf9800296b
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