OSDN Git Service

scsi_debug: give unit attention and other errors precedence over TSF
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 5 Aug 2014 10:20:46 +0000 (12:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:51 +0000 (09:09 -0700)
commitcd62b7dae245dd3bb3a21eaadcf01d93ec4fcc7c
treeadf2cfdf7bb8ce01b7ec0b6774acd00503ba785a
parent01123ef4c3fc9b9ff3062df2e10dee9b139b46b4
scsi_debug: give unit attention and other errors precedence over TSF

Give existing errors priority over the generation of Task
Set Full (TSF) errors. So that max_queue is not exceeded,
existing errors may be sent back in the invocation thread.
This is done so errors like Unit Attentions are not hidden
and lost by either max_queue exceeded or real/injected
TSFs.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_debug.c