summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/device_handler
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2008-08-21 23:12:40 -0700
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-10-23 11:42:11 -0500
commit5a36756b8b3d7178d9c101d1e2a7a83fd7b17706 (patch)
treeb893834f2f31b2a6f273bd1e0ed27688cade290d /drivers/scsi/device_handler
parent32c356d76d7e13dcd0675189d8e9c64ef66aa561 (diff)
downloadop-kernel-dev-5a36756b8b3d7178d9c101d1e2a7a83fd7b17706.zip
op-kernel-dev-5a36756b8b3d7178d9c101d1e2a7a83fd7b17706.tar.gz
[SCSI] 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. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/device_handler')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_rdac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c
index a43c3ed..3d50cab 100644
--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -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;
}
OpenPOWER on IntegriCloud