Skip to contentSkip to conversation

handle NO_SENSE in sd

PATCH New Christoph Hellwig 1 participant 1 message May 31, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 handle NO_SENSE in sd

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.

drivers/scsi/sd.c +4 -4
@@ -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 =====