mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
[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>
This commit is contained in:
parent
845a0e40af
commit
3ade1ca7ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user