]> git.baikalelectronics.ru Git - kernel.git/commit
uas: make work list per-device
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 13 Sep 2013 11:27:12 +0000 (13:27 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:05 +0000 (15:38 -0800)
commit49c7df7bb486b3ad216bb83407e2aec72e631058
treed1904687076cb3cee8afc81bce412e6928464da5
parentae7512cd485a8dedb8b75f4c24b5a3a502a8fe66
uas: make work list per-device

Simplifies locking, we'll protect the list with the device spin lock.
Also plugs races which can happen when two devices operate on the
global list.

While being at it rename the list head from "list" to "work", preparing
for the addition of a second list.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/storage/uas.c