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
..
2005-07-28 08:39:01 -07:00
2005-07-02 19:12:10 -05:00
2005-07-28 08:39:00 -07:00
2005-07-27 16:25:57 -07:00
2005-07-12 16:01:02 -07:00
2005-04-16 15:20:36 -07:00
2005-07-29 15:01:14 -07:00
2005-06-21 18:46:32 -07:00
2005-04-16 15:20:36 -07:00
2005-07-29 13:12:51 -07:00
2005-07-11 14:14:31 -07:00