]> 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)
commit40788d4c877cd247e793441249f2626fe2fb5817
treed1904687076cb3cee8afc81bce412e6928464da5
parent6032863cbe8bc16d2eebfa3731b7324394a3f607
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