]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: make eh_eflags persistent
authorHannes Reinecke <hare@suse.de>
Thu, 6 Apr 2017 13:36:33 +0000 (15:36 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Apr 2017 17:07:33 +0000 (13:07 -0400)
commit9256f1b4e254647c4e510c998def2ecc295a7241
treebf9748c6e26a839b43cf841ceb59b4efa4bc1ec4
parent38a65b0ccbc9b9943fe33bc0ea29cf19ca153c58
scsi: make eh_eflags persistent

If a failed command is retried and fails again we need
to enter SCSI EH, otherwise we will never be able to
recover the command.
To detect this situation we must not clear scmd->eh_eflags
when EH finishes but rather make it persistent throughout
the lifetime of the command.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/scsi/scsi_eh.txt
drivers/scsi/libsas/sas_scsi_host.c
drivers/scsi/scsi_error.c
include/scsi/scsi_eh.h