android_kernel_xiaomi_sm8350/drivers/scsi/aacraid
Mark Haverkamp fe76df4235 [SCSI] aacraid: Fix blocking issue with container probing function (cast update)
Received from Mark Salyzyn,

The aac_probe_container call blocks. This is an issue because it is called on
occasion in the context of the queuecommand handler. Once in a blue moon this
has resulted in a kernel panic sleeping during interrupt; or problems with some
embedded system versions of the kernel that depend on queuecommand to not
block. This ugly patch rewrites the aac_probe_container call into a new routine
_aac_probe_container that is an asynchronous state machine to complete the
series of operations. The legacy blocking aac_probe_container call used in
other areas of the driver (during initialization scanning for all targets and
in the separate hot-add/remove [aacraid] thread) merely issues
_aac_probe_container and then simple spins calling schedule() waiting for
completion.

Signed-off-by: Mark Haverkamp <markh@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-03-20 10:54:49 -05:00
..
aachba.c [SCSI] aacraid: Fix blocking issue with container probing function (cast update) 2007-03-20 10:54:49 -05:00
aacraid.h [SCSI] aacraid: Fix struct element name issue 2007-03-20 10:54:25 -05:00
commctrl.c [SCSI] aacraid: Fix struct element name issue 2007-03-20 10:54:25 -05:00
comminit.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
commsup.c [SCSI] aacraid: Fix struct element name issue 2007-03-20 10:54:25 -05:00
dpcsup.c [SCSI] aacraid: Fix struct element name issue 2007-03-20 10:54:25 -05:00
linit.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08: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