diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/constants.c | 1 | ||||
-rw-r--r-- | drivers/scsi/scsi_error.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index d0c82340f0e2..60d2ef291646 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c | |||
@@ -772,6 +772,7 @@ static const struct error_info additional[] = | |||
772 | {0x3802, "Esn - power management class event"}, | 772 | {0x3802, "Esn - power management class event"}, |
773 | {0x3804, "Esn - media class event"}, | 773 | {0x3804, "Esn - media class event"}, |
774 | {0x3806, "Esn - device busy class event"}, | 774 | {0x3806, "Esn - device busy class event"}, |
775 | {0x3807, "Thin Provisioning soft threshold reached"}, | ||
775 | 776 | ||
776 | {0x3900, "Saving parameters not supported"}, | 777 | {0x3900, "Saving parameters not supported"}, |
777 | 778 | ||
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 633c2395a92a..abea2cf05c2e 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -321,6 +321,12 @@ static int scsi_check_sense(struct scsi_cmnd *scmd) | |||
321 | "changed. The Linux SCSI layer does not " | 321 | "changed. The Linux SCSI layer does not " |
322 | "automatically adjust these parameters.\n"); | 322 | "automatically adjust these parameters.\n"); |
323 | 323 | ||
324 | if (sshdr.asc == 0x38 && sshdr.ascq == 0x07) | ||
325 | scmd_printk(KERN_WARNING, scmd, | ||
326 | "Warning! Received an indication that the " | ||
327 | "LUN reached a thin provisioning soft " | ||
328 | "threshold.\n"); | ||
329 | |||
324 | /* | 330 | /* |
325 | * Pass the UA upwards for a determination in the completion | 331 | * Pass the UA upwards for a determination in the completion |
326 | * functions. | 332 | * functions. |