Skip to contentSkip to conversation

scsi_io_completion: soften unhandled error and sense messages

PATCH In review Rob Evers 2 participants 2 messages Oct 6, 2011 – Oct 7, 2011 SCSI

lore
Share & tools
lore

Rob Evers

author
#0 lore raw

PATCH 1/1 scsi_io_completion: soften unhandled error and sense messages

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

---
 drivers/scsi/scsi_lib.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/scsi/scsi_lib.c +3 -2
index fc3f168..ef2a8a1 100644
@@ -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;
 	}
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 25 lines · 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

---
  drivers/scsi/scsi_lib.c |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
drivers/scsi/scsi_lib.c +1 -1
index fc3f168..ef2a8a1 100644
@@ -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 =

drivers/scsi/scsi_lib.c void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) · line 932

Quoted 10 lines
drivers/scsi/scsi_lib.c +2 -1
+				"Extended sense description not available";
  			action = ACTION_FAIL;
  			break;
  		}
  	} else {
-		description = "Unhandled error code";
+		description = "Extended error description not available";
  		action = ACTION_FAIL;
  	}
 

Actually, I would prefer having this message routed via the scsi_logging mechanism. Then it wouldn't bother the unsuspecting user and we still would retain the information if scsi_logging is enabled.

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html