public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi_io_completion: soften unhandled error and sense messages
@ 2011-10-06 22:08 Rob Evers
  2011-10-07  7:29 ` Hannes Reinecke
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Evers @ 2011-10-06 22:08 UTC (permalink / raw)
  To: linux-scsi; +Cc: Rob Evers

We are receiving reports that users are seeing error messages during
fabric faults, but the systems are not malfunctioning.  I previously
submitted a patch which simply removed the offending messages but
James Bottomley rejected this as we were losing error information.

This patch softens the messages such that they don't appear to
be error indications from the user perspective.

new messages suggested by Mike Christie

Signed-off-by: Rob Evers <revers@redhat.com>
---
 drivers/scsi/scsi_lib.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index fc3f168..ef2a8a1 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -920,12 +920,13 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
 			action = ACTION_FAIL;
 			break;
 		default:
-			description = "Unhandled sense code";
+			description =
+				"Extended sense description not available";
 			action = ACTION_FAIL;
 			break;
 		}
 	} else {
-		description = "Unhandled error code";
+		description = "Extended error description not available";
 		action = ACTION_FAIL;
 	}
 
-- 
1.7.1


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

end of thread, other threads:[~2011-10-07  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 22:08 [PATCH] scsi_io_completion: soften unhandled error and sense messages Rob Evers
2011-10-07  7:29 ` Hannes Reinecke

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