]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] More USB deadlock fixes
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 10 Apr 2014 20:36:11 +0000 (13:36 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 21 Apr 2014 18:10:34 +0000 (11:10 -0700)
commit1a2184c0d747166a56a99ae3ec51b2340d8a46fd
tree52b69dc5e7d7883d01117947d48bc63dcb115fab
parent12023e77f4986026928f157df5c0d6bded4d632f
[SCSI] More USB deadlock fixes

This patch fixes a corner case in the previous USB Deadlock fix patch (12023e7
[SCSI] Fix USB deadlock caused by SCSI error handling).

The scenario is abort command, set flag, abort completes, send TUR, TUR
doesn't return, so we now try to abort the TUR, but scsi_abort_eh_cmnd()
will skip the abort because the flag is set and move straight to reset.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_error.c