]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-set-default-ownership
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-rdac-set-default-ownership
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-set-default-ownership b/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-set-default-ownership
new file mode 100644 (file)
index 0000000..232d30a
--- /dev/null
@@ -0,0 +1,29 @@
+Subject: scsi_dh_rdac: make sure the ownership is set correctly
+From: Chandra Seetharaman <sekharan@us.ibm.com>
+Patch-Mainline: 2.6.28
+References: bnc#441337
+
+When the controller ownership is changed (from passive to active),
+check_ownership() doesn't set the state of the device to ACTIVE.
+
+This patch fixes the problem.
+
+Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
+Reported and tested by: "Moger, Babu" <Babu.Moger@lsi.com>
+Signed-off-by: Hannes Reinecke <hare@suse.de>
+
+---
+---
+ drivers/scsi/device_handler/scsi_dh_rdac.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
++++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
+@@ -386,6 +386,7 @@ static int check_ownership(struct scsi_d
+       struct c9_inquiry *inqp;
+       h->lun_state = RDAC_LUN_UNOWNED;
++      h->state = RDAC_STATE_ACTIVE;
+       err = submit_inquiry(sdev, 0xC9, sizeof(struct c9_inquiry), h);
+       if (err == SCSI_DH_OK) {
+               inqp = &h->inq.c9;