Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit deb1cb63 authored by Shyam Iyer's avatar Shyam Iyer Committed by James Bottomley
Browse files

[SCSI] Log thin provisioning threshold event



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: default avatarShyam Iyer <shyam_iyer@dell.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 5853b4f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"},

+6 −0
Original line number Diff line number Diff line
@@ -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.