]> 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)
commit4cc1f0372afd7500ea097b5af7e8a82bd229d991
tree7996e8239e7ae1a6188dd24a5e0a0c5a1f7469b1
parent1aa1f774ebe0cf4eec57c3abe3b3154c811fd121
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