diff options
author | nagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com> | 2011-12-01 03:12:40 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-15 07:57:31 +0100 |
commit | 3ade1ca7ac16a9c5cf5883d6f04e340562c17148 (patch) | |
tree | 618c60dc066ab8420937dbab0b6c4aa5b8582013 /drivers/scsi | |
parent | [SCSI] mpt2sas: Better handling DEAD IOC (PCI-E LInk down) error condition (diff) | |
download | linux-3ade1ca7ac16a9c5cf5883d6f04e340562c17148.tar.xz linux-3ade1ca7ac16a9c5cf5883d6f04e340562c17148.zip |
[SCSI] mpt2sas: When IOs are terminated, update the result to DID_SOFT_ERROR to avoid infinite resets
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index 0b6b6b44e362..5060634f7651 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c @@ -4485,6 +4485,8 @@ _scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) scmd->result = DID_TRANSPORT_DISRUPTED << 16; goto out; } + scmd->result = DID_SOFT_ERROR << 16; + break; case MPI2_IOCSTATUS_SCSI_TASK_TERMINATED: case MPI2_IOCSTATUS_SCSI_EXT_TERMINATED: scmd->result = DID_RESET << 16; |