All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] scsi_dh: add ALUA notification for EMC Clariion devices
@ 2008-09-23 14:46 Levy_Jerome
  2008-09-23 15:57 ` Matthew Wilcox
  2008-10-13 17:41 ` [PATCH 1/1] scsi_dh: fix boot oops with EMC Clariion Levy_Jerome
  0 siblings, 2 replies; 9+ messages in thread
From: Levy_Jerome @ 2008-09-23 14:46 UTC (permalink / raw)
  To: linux-scsi

Adding sense code data decode and notification for optimal/non-optimal
path changeover on Clariion devices. Unfortunately in the read sense
code we can't do another inquiry, so we can't tell the user whether we
are on the optimal or non-optimal path, only that a change has occurred.


Signed-off-by: Jerry Levy <levy_jerome@emc.com>
---------------------

--- ./drivers/scsi/device_handler/scsi_dh_emc.original.c
2008-09-17 14:50:18.000000000 -0400
+++ ./drivers/scsi/device_handler/scsi_dh_emc.c 2008-09-17
14:54:38.000000000 -0400
@@ -435,6 +435,16 @@
                        return SUCCESS;
                break;
        case UNIT_ATTENTION:
+                if (sense_hdr->asc == 0x2A && sense_hdr->ascq == 0x06)
+                        /*
+                         * ALUA status has changed. Report to host,
+                         * no further action required... jml
+                         */
+                        sdev_printk(KERN_NOTICE, sdev,
+                                    "%s: Asymmetric access state has
changed.\n",
+                                    CLARIION_NAME);
+                        return SUCCESS;
+                break;
                if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00)
                        /*
                         * Unit Attention Code. This is the first IO


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-10-17 18:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 14:46 [PATCH 1/1] scsi_dh: add ALUA notification for EMC Clariion devices Levy_Jerome
2008-09-23 15:57 ` Matthew Wilcox
2008-09-23 16:04   ` Levy_Jerome
2008-10-13 17:41 ` [PATCH 1/1] scsi_dh: fix boot oops with EMC Clariion Levy_Jerome
2008-10-17 17:34   ` James Bottomley
2008-10-17 18:17     ` Levy_Jerome
2008-10-17 18:33       ` James Bottomley
2008-10-17 18:35         ` Levy_Jerome
2008-10-17 18:37         ` Ric Wheeler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.