[PATCH 1/1] scsi_dh: add ALUA notification for EMC Clariion devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---------------------

--- ./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

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux