[PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Gerd Hoffmann
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

Re: [PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Oliver Neukum
On Thursday 29 November 2012 14:06:15 Gerd Hoffmann wrote: diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index dd23b61..5f498db 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -717,8 +717,22 @@ static int uas_eh_abort_handler(struct scsi_cmnd

Re: [PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Gerd Hoffmann
On 11/29/12 14:29, Oliver Neukum wrote: On Thursday 29 November 2012 14:06:15 Gerd Hoffmann wrote: diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index dd23b61..5f498db 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -717,8 +717,22 @@ static int