]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-initialize-passive-path
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-rdac-initialize-passive-path
1 Subject: Initialize path state to be passive when path is not owned
2 From: Chandra Seetharaman <sekharan@us.ibm.com>
3 Date: Thu Nov 20 14:14:39 2008 +0100:
4 References: bnc#442676
5
6 Set the path state to be passive when we learn that the controller does
7 not own the path to the LUN.
8
9 This will avoid sending even a single i/o thru the passive path at the
10 probe time.
11
12 Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
13 Signed-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