]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-initialize-passive-path
Move xen patchset to new version's subdir.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-rdac-initialize-passive-path
CommitLineData
00e5a55c
BS
1Subject: Initialize path state to be passive when path is not owned
2From: Chandra Seetharaman <sekharan@us.ibm.com>
3Date: Thu Nov 20 14:14:39 2008 +0100:
4References: bnc#442676
5
6Set the path state to be passive when we learn that the controller does
7not own the path to the LUN.
8
9This will avoid sending even a single i/o thru the passive path at the
10probe time.
11
12Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
13Signed-off-by: Hannes Reinecke <hare@suse.de>
14
15---
16 drivers/scsi/device_handler/scsi_dh_rdac.c | 3 +++
17 1 file changed, 3 insertions(+)
18
19--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
20+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
21@@ -403,6 +403,9 @@ static int check_ownership(struct scsi_d
22 }
23 }
24
25+ if (h->lun_state == RDAC_LUN_UNOWNED)
26+ h->state = RDAC_STATE_PASSIVE;
27+
28 return err;
29 }
30