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)
commit1bf8198e6b2da3e30960e95f8d215f44572515ce
treed1904687076cb3cee8afc81bce412e6928464da5
parentd89bd835326947e6618b97469159d3266016fe0a
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