]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Stop fw fault watchdog work item during system shutdown
authorDavid Jeffery <djeffery@redhat.com>
Fri, 22 Jul 2022 14:24:48 +0000 (10:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 10:03:47 +0000 (12:03 +0200)
commit64ce1912433013b3a3a3389ec621c8908d86123c
treeea60d815912e4c37f2482d7a3af257d1927fe815
parent1e4edecf6fe45b62565297879620d73c99830631
scsi: mpt3sas: Stop fw fault watchdog work item during system shutdown

commit a336cfcfb9803c7388d5a4a2c03606132f8e734e upstream.

During system shutdown or reboot, mpt3sas will reset the firmware back to
ready state. However, the driver leaves running a watchdog work item
intended to keep the firmware in operational state. This causes a second,
unneeded reset on shutdown and moves the firmware back to operational
instead of in ready state as intended. And if the mpt3sas_fwfault_debug
module parameter is set, this extra reset also panics the system.

mpt3sas's scsih_shutdown needs to stop the watchdog before resetting the
firmware back to ready state.

Link: https://lore.kernel.org/r/20220722142448.6289-1-djeffery@redhat.com
Fixes: 80df4e6869c9 ("scsi: mpt3sas: Transition IOC to Ready state during shutdown")
Tested-by: Laurence Oberman <loberman@redhat.com>
Acked-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: David Jeffery <djeffery@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/mpt3sas/mpt3sas_scsih.c