USB: uas: add locking
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Sep 2012 08:47:08 +0000 (10:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2012 22:32:23 +0000 (15:32 -0700)
commite064852072c47b69f62325c6b7fa4a58332655bd
tree6c73f09b979339b6740aafab36835c94e06af591
parent0871d7d86ce3788ba40391df3a259df2285776cd
USB: uas: add locking

Add spinlock to protect uas data structures.

[ v2: s/GFP_NOIO/GFP_ATOMIC/, better don't sleep when holding a spinlock ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c