kernel-ark/include
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
..
acpi
asm-alpha
asm-arm
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 x86: fix new find_first_bit() 2005-07-29 11:01:22 -04:00
asm-ia64
asm-m32r
asm-m68k
asm-m68knommu
asm-mips
asm-parisc
asm-ppc
asm-ppc64
asm-s390
asm-sh
asm-sh64
asm-sparc
asm-sparc64
asm-um [PATCH] uml: vm86 compile fix 2005-07-28 21:46:03 -07:00
asm-v850
asm-x86_64 [PATCH] Fix sync_tsc hang 2005-07-29 15:01:13 -07:00
asm-xtensa
linux [PATCH] PCI: fix up errors after dma bursting patch and CONFIG_PCI=n -- bug? 2005-07-29 13:12:52 -07:00
math-emu
media
mtd
net
pcmcia
rxrpc
scsi [SCSI] add global timeout to the scsi mid-layer 2005-08-08 09:55:39 -05:00
sound
video