public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: scsi_dh: Initialize path state to be passive when path is not owned
@ 2008-08-22  6:12 Chandra Seetharaman
  0 siblings, 0 replies; only message in thread
From: Chandra Seetharaman @ 2008-08-22  6:12 UTC (permalink / raw)
  To: James Bottomley; +Cc: Linux SCSI Mailing list

Set the path state to be passive when we learn that the controller does
not own the path to the LUN.

This will avoid sending even a single i/o thru the passive path at the
probe time.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
---

Index: linux-2.6.27-rc3/drivers/scsi/device_handler/scsi_dh_rdac.c
===================================================================
--- linux-2.6.27-rc3.orig/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ linux-2.6.27-rc3/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -402,6 +402,9 @@ static int check_ownership(struct scsi_d
 		}
 	}
 
+	if (h->lun_state == RDAC_LUN_UNOWNED)
+		h->state = RDAC_STATE_PASSIVE;
+
 	return err;
 }
 



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

only message in thread, other threads:[~2008-08-22  6:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22  6:12 [PATCH]: scsi_dh: Initialize path state to be passive when path is not owned Chandra Seetharaman

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