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

Next file: linux/drivers/scsi/st.c
Previous file: linux/drivers/scsi/esp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.94/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -23,6 +23,10 @@
  *  Added request_module("scsi_hostadapter") for kerneld:
  *  (Put an "alias scsi_hostadapter your_hostadapter" in /etc/conf.modules)
  *  Bjorn Ekwall  <bj0rn@blox.se>
+ *
+ *  Major improvements to the timeout, abort, and reset processing,
+ *  as well as performance modifications for large queue depths by
+ *  Leonard N. Zubkoff <lnz@dandelion.com>
  */
 
 /*
@@ -2122,12 +2126,12 @@
                  */
                 if( temp & SCSI_RESET_BUS_RESET )
                 {
-                    SCpnt1 = host->host_queue;
-                    while(SCpnt1) {
-                        if( SCpnt->request.rq_status != RQ_INACTIVE
-                           && SCpnt1 != SCpnt)
-                            scsi_request_sense (SCpnt);
-                        SCpnt1 = SCpnt1->next;
+		    SCpnt1 = host->host_queue;
+		    while(SCpnt1) {
+			if (SCpnt1->request.rq_status != RQ_INACTIVE
+			    && SCpnt1 != SCpnt)
+			    scsi_request_sense (SCpnt1);
+			SCpnt1 = SCpnt1->next;
                     }
                 }
 		return 0;

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