public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] handle NO_SENSE in sd
@ 2004-05-31 11:48 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-05-31 11:48 UTC (permalink / raw)
  To: jejb; +Cc: linux-scsi

Original patch from
http://marc.theaimsgroup.com/?l=linux-scsi&m=107428662718579&w=2
reworked to according to James' suggestion to handle NO_SENSE the same
as RECOVERED_ERROR.


--- 1.148/drivers/scsi/sd.c	2004-04-30 11:55:42 +02:00
+++ edited/drivers/scsi/sd.c	2004-05-31 12:53:01 +02:00
@@ -762,11 +762,11 @@
 				good_bytes = 0;
 			break;
 
-		case RECOVERED_ERROR:
+		case RECOVERED_ERROR: /* an error occurred, but it recovered */
+		case NO_SENSE: /* LLDD got sense data */
 			/*
-			 * An error occurred, but it recovered.  Inform the
-			 * user, but make sure that it's not treated as a
-			 * hard error.
+			 * Inform the user, but make sure that it's not treated
+			 * as a hard error.
 			 */
 			print_sense("sd", SCpnt);
 			SCpnt->result = 0;
===== include/linux/ide.h 1.116 vs edited =====

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-31 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-31 11:48 [PATCH] handle NO_SENSE in sd Christoph Hellwig

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