patch-1.3.50 linux/drivers/scsi/scsi.c

Next file: linux/drivers/scsi/seagate.c
Previous file: linux/drivers/scsi/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.49/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1564,6 +1564,13 @@
 #ifdef DEBUG
 	    printk("Aborting\n");
 #endif
+	    /*
+	      Allow TEST_UNIT_READY and INQUIRY commands to timeout early
+	      without causing resets.  All other commands should be retried.
+	    */
+	    if (SCpnt->cmnd[0] != TEST_UNIT_READY &&
+		SCpnt->cmnd[0] != INQUIRY)
+		    status = MAYREDO;
 	    exit = (DRIVER_TIMEOUT | SUGGEST_ABORT);
 	}
 	else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this