]> git.baikalelectronics.ru Git - kernel.git/commit
uas: improve abort handler
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Nov 2012 10:54:43 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 20:14:18 +0000 (12:14 -0800)
commit6edaa188c43fb01e37e276a4566ffa2325d260d6
tree7996e8239e7ae1a6188dd24a5e0a0c5a1f7469b1
parent48fcb3805bd3ad0e87ae2b8c16167325cb56560a
uas: improve abort handler

Two changes.  First we check whenever the request is linked in the work
list and if so take it out.  Second check whenever the command is
actually in flight before asking the device to cancel it via task
management, and in case it isn't just zap the data urbs and finish it.

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