Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

Brian King and committed by
James Bottomley
5b7304fb 896bbd21

+2 -1
+2 -1
drivers/scsi/ipr.c
··· 4218 4218 case IPR_IOASC_NR_INIT_CMD_REQUIRED: 4219 4219 break; 4220 4220 default: 4221 - scsi_cmd->result |= (DID_ERROR << 16); 4221 + if (IPR_IOASC_SENSE_KEY(ioasc) > RECOVERED_ERROR) 4222 + scsi_cmd->result |= (DID_ERROR << 16); 4222 4223 if (!ipr_is_vset_device(res) && !ipr_is_naca_model(res)) 4223 4224 res->needs_sync_complete = 1; 4224 4225 break;