patch-2.0.13 linux/drivers/scsi/eata_dma.c
Next file: linux/drivers/scsi/eata_dma.h
Previous file: linux/drivers/scsi/aic7xxx_reg.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Aug 14 10:21:03 1996
- Orig file:
v2.0.12/linux/drivers/scsi/eata_dma.c
- Orig date:
Mon Aug 5 10:13:52 1996
diff -u --recursive --new-file v2.0.12/linux/drivers/scsi/eata_dma.c linux/drivers/scsi/eata_dma.c
@@ -58,7 +58,7 @@
* Jagdis who did a lot of testing and found quite a number *
* of bugs during the development. *
************************************************************
- * last change: 96/07/20 OS: Linux 2.0.8 *
+ * last change: 96/08/13 OS: Linux 2.0.12 *
************************************************************/
/* Look in eata_dma.h for configuration and revision information */
@@ -854,6 +854,15 @@
}
} else /* ISA forces us to limit the QS because of bounce buffers*/
device->queue_depth = 2; /* I know this is cruel */
+
+ /*
+ * It showed that we need to set an upper limit of commands
+ * we can allow to queue for a single device on the bus.
+ * If we get above that limit, the broken midlevel SCSI code
+ * will produce bogus timeouts and aborts en masse. :-(
+ */
+ if(device->queue_depth > UPPER_DEVICE_QUEUE_LIMIT)
+ device->queue_depth = UPPER_DEVICE_QUEUE_LIMIT;
printk(KERN_INFO "scsi%d: queue depth for target %d on channel %d "
"set to %d\n", host->host_no, device->id, device->channel,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov