]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-rdac-set-default-ownership
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-rdac-set-default-ownership
1 Subject: scsi_dh_rdac: make sure the ownership is set correctly
2 From: Chandra Seetharaman <sekharan@us.ibm.com>
3 Patch-Mainline: 2.6.28
4 References: bnc#441337
5
6 When the controller ownership is changed (from passive to active),
7 check_ownership() doesn't set the state of the device to ACTIVE.
8
9 This patch fixes the problem.
10
11 Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
12 Reported and tested by: "Moger, Babu" <Babu.Moger@lsi.com>
13 Signed-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;