Skip to contentSkip to conversation

: scsi_dh: Initialize path state to be passive when path is not owned

PATCH New Chandra Seetharaman 1 participant 1 message Aug 22, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : scsi_dh: Initialize path state to be passive when path is not owned

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.

---

drivers/scsi/device_handler/scsi_dh_rdac.c +3 -0
Index: 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;
 }