diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2010-06-17 05:07:25 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:02:28 -0400 |
commit | 4d0695664ed8e168f97cce86289d0c5fab35b067 (patch) | |
tree | a9f4c9c996614033ebd5cb13289749d3aadadfbc /drivers/message/fusion/mptscsih.c | |
parent | 8ce13de2ad0df5239340e885e5513d9ad98439e0 (diff) |
[SCSI] mptfusion: Use DID_TRANSPORT_DISRUPTED instead of DID_BUS_BUSY
Changed the return value for Nexus Loss IOs to be DID_TRANSPORT_DISRUPTED.
What this will allow is the multi-path driver to delay the fail over
process. They would like the path to keep up as long as the nexus loss
Loginfo is return from firmware. With DID_BUS_BUSY the path fails over
immediately.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 407cb84822df..5a3c10e72e40 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -742,7 +742,9 @@ mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) | |||
742 | if (ioc_status & MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE) { | 742 | if (ioc_status & MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE) { |
743 | if ((log_info & SAS_LOGINFO_MASK) | 743 | if ((log_info & SAS_LOGINFO_MASK) |
744 | == SAS_LOGINFO_NEXUS_LOSS) { | 744 | == SAS_LOGINFO_NEXUS_LOSS) { |
745 | sc->result = (DID_BUS_BUSY << 16); | 745 | sc->result = |
746 | (DID_TRANSPORT_DISRUPTED | ||
747 | << 16); | ||
746 | break; | 748 | break; |
747 | } | 749 | } |
748 | } | 750 | } |