public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Thin provisioning trivial Update
@ 2011-02-26  6:59 shyam.iyer.t
  2011-02-26  6:59 ` [PATCH 1/2] [SCSI] Log thin provisioning threshold event shyam.iyer.t
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: shyam.iyer.t @ 2011-02-26  6:59 UTC (permalink / raw)
  To: linux-scsi

The first patch logs a kernel warning message for the THIN PROVISIONING SOFT THRESHOLD REACHED Unit Attention
The second patch adds the THIN PROVISIONING SOFT THRESHOLD REACHED Unit Attention to scsi constants

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

* [PATCH 1/2] [SCSI] Log thin provisioning threshold event
  2011-02-26  6:59 Thin provisioning trivial Update shyam.iyer.t
@ 2011-02-26  6:59 ` shyam.iyer.t
  2011-02-26  6:59 ` [PATCH 2/2] [SCSI] Update scsi constants shyam.iyer.t
  2011-02-26 17:19 ` Thin provisioning trivial Update Douglas Gilbert
  2 siblings, 0 replies; 5+ messages in thread
From: shyam.iyer.t @ 2011-02-26  6:59 UTC (permalink / raw)
  To: linux-scsi; +Cc: Shyam Iyer

From: Shyam Iyer <shyam_iyer@dell.com>

At least log the message that we received a THIN PROVISIONING SOFT THRESHOLD REACHED
Unit Attention

Signed-off-by: Shyam Iyer <shyam_iyer@dell.com>
---
 drivers/scsi/scsi_error.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 991de3c..98a1da0 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -320,6 +320,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.
-- 
1.7.2.3


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

* [PATCH 2/2] [SCSI] Update scsi constants
  2011-02-26  6:59 Thin provisioning trivial Update shyam.iyer.t
  2011-02-26  6:59 ` [PATCH 1/2] [SCSI] Log thin provisioning threshold event shyam.iyer.t
@ 2011-02-26  6:59 ` shyam.iyer.t
  2011-02-26 17:19 ` Thin provisioning trivial Update Douglas Gilbert
  2 siblings, 0 replies; 5+ messages in thread
From: shyam.iyer.t @ 2011-02-26  6:59 UTC (permalink / raw)
  To: linux-scsi; +Cc: Shyam Iyer

From: Shyam Iyer <shyam_iyer@dell.com>

Update scsi/constants.c with the asc/ascqs for THIN PROVISIONING SOFT THRESHOLD REACHED Unit Attention

Signed-off-by: Shyam Iyer <shyam_iyer@dell.com>
---
 drivers/scsi/constants.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c
index d0c8234..60d2ef2 100644
--- a/drivers/scsi/constants.c
+++ b/drivers/scsi/constants.c
@@ -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"},
 
-- 
1.7.2.3


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

* Re: Thin provisioning trivial Update
  2011-02-26  6:59 Thin provisioning trivial Update shyam.iyer.t
  2011-02-26  6:59 ` [PATCH 1/2] [SCSI] Log thin provisioning threshold event shyam.iyer.t
  2011-02-26  6:59 ` [PATCH 2/2] [SCSI] Update scsi constants shyam.iyer.t
@ 2011-02-26 17:19 ` Douglas Gilbert
  2011-02-26 17:22   ` Martin K. Petersen
  2 siblings, 1 reply; 5+ messages in thread
From: Douglas Gilbert @ 2011-02-26 17:19 UTC (permalink / raw)
  To: shyam.iyer.t; +Cc: linux-scsi, Martin K. Petersen

On 11-02-26 01:59 AM, shyam.iyer.t@gmail.com wrote:
> The first patch logs a kernel warning message for the THIN PROVISIONING SOFT THRESHOLD REACHED Unit Attention
> The second patch adds the THIN PROVISIONING SOFT THRESHOLD REACHED Unit Attention to scsi constants

As of SBC-3 draft revision 25 (27 October 2010) most
uses of "thin provisioning" have been renamed
"logical block provisioning". Further changes in
this direction occurred in SBC-3 draft revision 26
and I suspect there are more to come.

However thin provisioning lives on, essentially as a
special case of logical block provisioning. As of the
current drafts of SBC-3 and SPC-4 additional sense
code 38h,7h has the description you have given.


Memo to Martin Petersen and myself: scsi_debug needs
options and variables renamed due to these changes by
t10.

Doug Gilbert

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

* Re: Thin provisioning trivial Update
  2011-02-26 17:19 ` Thin provisioning trivial Update Douglas Gilbert
@ 2011-02-26 17:22   ` Martin K. Petersen
  0 siblings, 0 replies; 5+ messages in thread
From: Martin K. Petersen @ 2011-02-26 17:22 UTC (permalink / raw)
  To: dgilbert; +Cc: shyam.iyer.t, linux-scsi, Martin K. Petersen

>>>>> "Doug" == Douglas Gilbert <dgilbert@interlog.com> writes:

Doug> Memo to Martin Petersen and myself: scsi_debug needs options and
Doug> variables renamed due to these changes by t10.

Yeah, I have some patches pending for the next merge window that update
all this, including support for WRITE SAME(10).

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2011-02-26 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26  6:59 Thin provisioning trivial Update shyam.iyer.t
2011-02-26  6:59 ` [PATCH 1/2] [SCSI] Log thin provisioning threshold event shyam.iyer.t
2011-02-26  6:59 ` [PATCH 2/2] [SCSI] Update scsi constants shyam.iyer.t
2011-02-26 17:19 ` Thin provisioning trivial Update Douglas Gilbert
2011-02-26 17:22   ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox