[SCSI] scsi_dh: Initialize path state to be passive when path is not owned
authorChandra Seetharaman <sekharan@us.ibm.com>
Fri, 22 Aug 2008 06:12:40 +0000 (23:12 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 23 Oct 2008 16:42:11 +0000 (11:42 -0500)
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>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/device_handler/scsi_dh_rdac.c

index a43c3ed4df28c3dcb68d1843a6028459d085c0f0..3d50cabca7eeba34bbdda3ae84eb8ce9228df5f3 100644 (file)
@@ -401,6 +401,9 @@ static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h)
                }
        }
 
+       if (h->lun_state == RDAC_LUN_UNOWNED)
+               h->state = RDAC_STATE_PASSIVE;
+
        return err;
 }