summaryrefslogtreecommitdiffstats
path: root/Documentation/scsi
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-04-06 15:36:34 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-04-06 19:07:33 +0200
commit2171b6d08bf8c2b826922b94e24ba36b00cb78b3 (patch)
treee0c8a2c62559b1385887550598f12a1570d1e174 /Documentation/scsi
parentscsi: make eh_eflags persistent (diff)
downloadlinux-2171b6d08bf8c2b826922b94e24ba36b00cb78b3.tar.xz
linux-2171b6d08bf8c2b826922b94e24ba36b00cb78b3.zip
scsi: make scsi_eh_scmd_add() always succeed
scsi_eh_scmd_add() currently only will fail if no error handler thread is started (which will never be the case) or if the state machine encounters an illegal transition. But if we're encountering an invalid state transition chances is we cannot fixup things with the error handler. So better add a WARN_ON for illegal host states and make scsi_dh_scmd_add() a void function. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'Documentation/scsi')
0 files changed, 0 insertions, 0 deletions