[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] Make sure the state of a path is set properly when controller is swapped from passive to active
- From: Chandra Seetharaman <sekharan us ibm com>
- To: Linux SCSI Mailing list <linux-scsi vger kernel org>
- Cc: dm-devel <dm-devel redhat com>, "Moger, Babu" <Babu Moger lsi com>
- Subject: [dm-devel] [PATCH] Make sure the state of a path is set properly when controller is swapped from passive to active
- Date: Wed, 05 Nov 2008 20:05:21 -0800
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>
---
Index: linux-2.6.28-rc3/drivers/scsi/device_handler/scsi_dh_rdac.c
===================================================================
--- linux-2.6.28-rc3.orig/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ linux-2.6.28-rc3/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -387,6 +387,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;
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]