]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] Log thin provisioning threshold event
authorShyam Iyer <shyam_iyer@dell.com>
Sat, 26 Feb 2011 06:59:44 +0000 (01:59 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 15 Apr 2011 21:29:25 +0000 (16:29 -0500)
At least log the message that we received a THIN PROVISIONING SOFT
THRESHOLD REACHED Unit Attention.  Also added it to unit attention
decodes.

Signed-off-by: Shyam Iyer <shyam_iyer@dell.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/constants.c
drivers/scsi/scsi_error.c

index d0c82340f0e25198d0c56101c76d0d1a00b17254..60d2ef291646bb93f556469a8a25471002f7d71f 100644 (file)
@@ -772,6 +772,7 @@ static const struct error_info additional[] =
        {0x3802, "Esn - power management class event"},
        {0x3804, "Esn - media class event"},
        {0x3806, "Esn - device busy class event"},
+       {0x3807, "Thin Provisioning soft threshold reached"},
 
        {0x3900, "Saving parameters not supported"},
 
index 633c2395a92a2c918cfd068d541f99063f9470f2..abea2cf05c2e41cc1b7a7df581ae74cf0db56768 100644 (file)
@@ -321,6 +321,12 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
                                    "changed. The Linux SCSI layer does not "
                                    "automatically adjust these parameters.\n");
 
+               if (sshdr.asc == 0x38 && sshdr.ascq == 0x07)
+                       scmd_printk(KERN_WARNING, scmd,
+                                   "Warning! Received an indication that the "
+                                   "LUN reached a thin provisioning soft "
+                                   "threshold.\n");
+
                /*
                 * Pass the UA upwards for a determination in the completion
                 * functions.