Skip to contentSkip to conversation

scsi: Retry failfast commands after EH

PATCH New Hannes Reinecke 1 participant 1 message Jan 27, 2014 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: Retry failfast commands after EH

Any commands with return status DID_FAILFAST_XXX should be retried; the port will be in a sane state after EH.

---
 drivers/scsi/scsi_error.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/scsi/scsi_error.c +3 -0
index 78b004d..5141235 100644
@@ -684,6 +684,9 @@ static int scsi_eh_completed_normally(struct scsi_cmnd *scmd)
 		 */
 		return scsi_check_sense(scmd);
 	}
+	if ((host_byte(scmd->result) == DID_TRANSPORT_DISRUPTED) ||
+	    (host_byte(scmd->result) == DID_TRANSPORT_FAILFAST))
+		return NEEDS_RETRY;
 	if (host_byte(scmd->result) != DID_OK)
 		return FAILED;
 
Signature · 1 line
1.7.12.4