Any commands with return status DID_FAILFAST_XXX should be retried; the port will be in a sane state after EH. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- drivers/scsi/scsi_error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 78b004d..5141235 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -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; -- 1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html