]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.fixes/scsi-dh-rdac-set-default-ownership
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / scsi-dh-rdac-set-default-ownership
CommitLineData
2cb7cef9
BS
1Subject: scsi_dh_rdac: make sure the ownership is set correctly
2From: Chandra Seetharaman <sekharan@us.ibm.com>
3Patch-Mainline: 2.6.28
4References: bnc#441337
5
6When the controller ownership is changed (from passive to active),
7check_ownership() doesn't set the state of the device to ACTIVE.
8
9This patch fixes the problem.
10
11Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
12Reported and tested by: "Moger, Babu" <Babu.Moger@lsi.com>
13Signed-off-by: Hannes Reinecke <hare@suse.de>
14
15---
16---
17 drivers/scsi/device_handler/scsi_dh_rdac.c | 1 +
18 1 file changed, 1 insertion(+)
19
20--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
21+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
22@@ -386,6 +386,7 @@ static int check_ownership(struct scsi_d
23 struct c9_inquiry *inqp;
24
25 h->lun_state = RDAC_LUN_UNOWNED;
26+ h->state = RDAC_STATE_ACTIVE;
27 err = submit_inquiry(sdev, 0xC9, sizeof(struct c9_inquiry), h);
28 if (err == SCSI_DH_OK) {
29 inqp = &h->inq.c9;