uas: improve device reset
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Nov 2012 10:54:44 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 20:14:18 +0000 (12:14 -0800)
commit4c456971f8c90b8179bf5fd5ae2d9b734085c19d
treeddeb1204bc07ef3dbaa5cfc5b5f10838d2cb18a6
parent5d390403fee54a64c660b7d42f7b38d99a486b88
uas: improve device reset

Add new function to unlink and abort requests from the work
list, call it on bus reset and disconnect where we kill all
in-flight urbs.  Also reorder calls in disconnect to first
cancel transfers, then remove the scsi hba.

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