kernel-ark/include/scsi
James Bottomley b21a413851 [SCSI] add global timeout to the scsi mid-layer
There are certain rogue devices (and the aic7xxx driver) that return
BUSY or QUEUE_FULL forever.  This code will apply a global timeout (of
the total number of retries times the per command timer) to a given
command.  If it is exceeded, the command is completed regardless of its
state.

The patch also removes the unused field in the command: timeout and
timeout_total.

This solves the problem of detecting an endless loop in the mid-layer
because of BUSY/QUEUE_FULL bouncing, but will not recover the device.
In the aic7xxx case, the driver can be recovered by sending a bus reset,
so possibly this should be tied into the error handler?

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-08-08 09:55:39 -05:00
..
scsi_cmnd.h [SCSI] add global timeout to the scsi mid-layer 2005-08-08 09:55:39 -05:00
scsi_dbg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_device.h [SCSI] fix function prototype warning 2005-07-14 11:54:17 -05:00
scsi_devinfo.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_driver.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_eh.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_host.h [SCSI] add template for scsi_host_set_state() 2005-07-30 11:39:53 -05:00
scsi_ioctl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_request.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_tcq.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_fc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_iscsi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_spi.h [SCSI] add missing hold_mcs parameter to the spi transport class 2005-08-03 15:54:55 -05:00
scsi_transport.h [SCSI] allow the HBA to reserve target and device private areas 2005-05-26 11:49:20 -04:00
scsi.h [SCSI] add TYPE_RBC to our type table 2005-07-11 12:38:33 -05:00
scsicam.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sg_request.h [PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround 2005-06-24 00:05:28 -07:00
sg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00