]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-initialize-passive-path
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-rdac-initialize-passive-path
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-initialize-passive-path b/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-initialize-passive-path
new file mode 100644 (file)
index 0000000..91fa711
--- /dev/null
@@ -0,0 +1,30 @@
+Subject: Initialize path state to be passive when path is not owned
+From: Chandra Seetharaman <sekharan@us.ibm.com>
+Date: Thu Nov 20 14:14:39 2008 +0100:
+References: bnc#442676
+
+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: Hannes Reinecke <hare@suse.de>
+
+---
+ drivers/scsi/device_handler/scsi_dh_rdac.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
++++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
+@@ -403,6 +403,9 @@ static int check_ownership(struct scsi_d
+               }
+       }
++      if (h->lun_state == RDAC_LUN_UNOWNED)
++              h->state = RDAC_STATE_PASSIVE;
++
+       return err;
+ }