linux/drivers/scsi/aacraid
Raghava Aditya Renukunta 07beca2be2 aacraid: Relinquish CPU during timeout wait
aac_fib_send has a special function case for initial commands during
driver initialization using wait < 0(pseudo sync mode). In this case,
the command does not sleep but rather spins checking for timeout.This
loop is calls cpu_relax() in an attempt to allow other processes/threads
to use the CPU, but this function does not relinquish the CPU and so the
command will hog the processor. This was observed in a KDUMP
"crashkernel" and that prevented the "command thread" (which is
responsible for completing the command from being timed out) from
starting because it could not get the CPU.

Fixed by replacing "cpu_relax()" call with "schedule()"
Cc: stable@vger.kernel.org
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-04-29 19:08:24 -04:00
..
aachba.c aacraid: Removed unnecessary checks for NULL 2016-04-29 19:08:24 -04:00
aacraid.h aacraid: Fix incorrectly named MACRO 2016-04-29 19:08:24 -04:00
commctrl.c aacraid: Fix AIF triggered IOP_RESET 2016-02-23 21:27:02 -05:00
comminit.c aacraid: Fix incorrectly named MACRO 2016-04-29 19:08:24 -04:00
commsup.c aacraid: Relinquish CPU during timeout wait 2016-04-29 19:08:24 -04:00
dpcsup.c aacraid: SCSI blk tag support 2016-02-23 21:27:02 -05:00
linit.c aacraid: Start adapter after updating number of MSIX vectors 2016-04-29 19:08:24 -04:00
Makefile [SCSI] aacraid: Add new code for PMC-Sierra's SRC based controller family 2011-03-23 11:36:58 -05:00
nark.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rkt.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rx.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
sa.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
src.c aacraid: Fix RRQ overload 2016-02-23 21:27:02 -05:00
TODO