linux/drivers/scsi/aacraid
Raghava Aditya Renukunta fc4bf75ea3 aacraid: Fix for aac_command_thread hang
Typically under error conditions, it is possible for aac_command_thread()
to miss the wakeup from kthread_stop() and go back to sleep, causing it
to hang aac_shutdown.

In the observed scenario, the adapter is not functioning correctly and so
aac_fib_send() never completes (or time-outs depending on how it was
called). Shortly after aac_command_thread() starts it performs
aac_fib_send(SendHostTime) which hangs. When aac_probe_one
/aac_get_adapter_info send time outs, kthread_stop is called which breaks
the command thread out of it's hang.

The code will still go back to sleep in schedule_timeout() without
checking kthread_should_stop() so it causes aac_probe_one to hang until
the schedule_timeout() which is 30 minutes.

Fixed by: Adding another kthread_should_stop() before schedule_timeout()
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: Disable MSI mode for series 6, 7, 8 cards 2016-04-29 19:08:24 -04:00
commsup.c aacraid: Fix for aac_command_thread hang 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
nark.c
rkt.c
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