public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] fusion: return DID_COND_REQUEUE if SCSI status is MPI_SCSI_STATUS_BUSY
@ 2007-02-02 22:05 Edward Goggin
  0 siblings, 0 replies; only message in thread
From: Edward Goggin @ 2007-02-02 22:05 UTC (permalink / raw)
  To: linux-scsi; +Cc: James.Bottomley, eric.moore

From: Ed Goggin <egoggin@vmware.com>

Return DID_COND_REQUEUE instead of DID_BUS_BUSY for IOC status
is SUCCESS and scsi_status is MPI_SCSI_STATUS_BUSY.  Command
will be retried via ADD_TO_MLQUEUE IFF not REQ_FAILFAST.

Signed-off-by: Ed Goggin <egoggin@vmware.com>

diff --git a/drivers/message/fusion/mptscsih.c
b/drivers/message/fusion/mptscsih.c
index f0cca3e..312a75e 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -781,7 +781,7 @@ mptscsih_io_done(MPT_ADAPTER *ioc, MPT_F
 		case MPI_IOCSTATUS_SCSI_RECOVERED_ERROR:	/* 0x0040 */
 		case MPI_IOCSTATUS_SUCCESS:			/* 0x0000 */
 			if (scsi_status == MPI_SCSI_STATUS_BUSY)
-				sc->result = (DID_BUS_BUSY << 16) | scsi_status;
+				sc->result = (DID_COND_REQUEUE << 16) | scsi_status;
 			else
 				sc->result = (DID_OK << 16) | scsi_status;
 			if (scsi_state == 0) {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-02 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-02 22:05 [PATCH 2/2] fusion: return DID_COND_REQUEUE if SCSI status is MPI_SCSI_STATUS_BUSY Edward Goggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox