1 Subject: scsi_dh_rdac: make sure the ownership is set correctly
2 From: Chandra Seetharaman <sekharan@us.ibm.com>
6 When the controller ownership is changed (from passive to active),
7 check_ownership() doesn't set the state of the device to ACTIVE.
9 This patch fixes the problem.
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>
17 drivers/scsi/device_handler/scsi_dh_rdac.c | 1 +
18 1 file changed, 1 insertion(+)
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;
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) {