uas: Simplify reset / disconnect handling
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Sep 2014 10:26:36 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:42:11 +0000 (21:42 -0700)
commit1589349f74d669b767bc0971fb21372ad300452e
tree322d4bff0ad27ffddea728df07a064524315f74b
parent85fea82554ee74f0a2e17729a3911865df5fbba0
uas: Simplify reset / disconnect handling

Drop the whole dance with first moving cmnds to a dead-list. The resetting
flag ensures that no new cmds / urbs will be submitted, and that any urb
completions are short-circuited without trying to complete the scsi cmnd.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c