Commit 5b7304fb authored by Brian King's avatar Brian King Committed by James Bottomley
Browse files

[SCSI] ipr: Properly handle IOA recovered errors



The ipr driver currently translates adapter recovered errors
to DID_ERROR. This patch fixes this to translate these
errors to success instead.

Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 896bbd21
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4218,6 +4218,7 @@ static void ipr_erp_start(struct ipr_ioa_cfg *ioa_cfg,
	case IPR_IOASC_NR_INIT_CMD_REQUIRED:
		break;
	default:
		if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR)
			scsi_cmd->result |= (DID_ERROR << 16);
		if (!ipr_is_vset_device(res) && !ipr_is_naca_model(res))
			res->needs_sync_complete = 1;