linux/drivers/scsi/aacraid
Mark Haverkamp 03d4433721 [SCSI] aacraid: Improved error handling
Received from Mark Salyzyn,

This set of fixes improve error handling stability of the driver. A popular
manifestation of the problems is an NULL pointer reference in the interrupt
handler when referencing portions of the scsi command context, or in the
scsi_done handling when an offlined device is referenced.

The aacraid driver currently does not get notification of orphaned command
completions due to devices going offline. The driver also fails to handle the
commands that are finished by the error handler, and thus can complete again
later at the hands of the adapter causing situations of completion of an
invalid scsi command context. Test Unit Ready calls abort assuming that the
abort was successful, but are not, and thus when the interrupt from the adapter
occurs, they reference invalid command contexts. We add in a TIMED_OUT flag to
inform the aacraid FIB context that the interrupt service should merely release
the driver resources and not complete the command up. We take advantage of this
with the abort handler as well for select abortable commands. And we detect and
react if a command that can not be aborted is currently still outstanding to
the controller when reissued by the retry mechanism.

Signed-off-by: Mark Haverkamp <markh@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-03-20 10:56:03 -05:00
..
aachba.c [SCSI] aacraid: Improved error handling 2007-03-20 10:56:03 -05:00
aacraid.h [SCSI] aacraid: Improved error handling 2007-03-20 10:56:03 -05:00
commctrl.c [SCSI] aacraid: fix srb ioctl for 64 bits 2007-03-20 10:55:40 -05:00
comminit.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
commsup.c [SCSI] aacraid: Improved error handling 2007-03-20 10:56:03 -05:00
dpcsup.c [SCSI] aacraid: Improved error handling 2007-03-20 10:56:03 -05:00
linit.c [SCSI] aacraid: Improved error handling 2007-03-20 10:56:03 -05:00
Makefile [SCSI] aacraid: Begin adding support for new adapter type 2007-01-27 09:27:31 -06:00
nark.c [SCSI] aacraid: Begin adding support for new adapter type 2007-01-27 09:27:31 -06:00
rkt.c [SCSI] aacraid: rework communication support code 2007-01-27 09:27:06 -06:00
rx.c [SCSI] aacraid: Fix struct element name issue 2007-03-20 10:54:25 -05:00
sa.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
TODO [SCSI] aacraid: Newer adapter communication iterface support 2005-10-28 11:41:53 -05:00