scsi: qla2xxx: stop timer in shutdown path
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: stop timer in shutdown path
In shutdown/reboot paths, the timer is not stopped:
qla2x00_shutdown
pci_device_shutdown
device_shutdown
kernel_restart_prepare
kernel_restart
sys_reboot
This causes lockups (on powerpc) when firmware config space access calls are interrupted by smp_send_stop later in reboot.
Fixes e30d1756480dc ("[SCSI] qla2xxx: Addition of shutdown callback handler.")
Signed-off-by Nicholas Piggin <[email protected]>
---
The Fixes: tag is not exactly fixing the commit, presumably the timer was still left running before then too. However it gives a handle for backports: if you care about cleaning up resources on shutdown, then you need that patch, so you'll notice this one too.
Thanks,
Nick
drivers/scsi/qla2xxx/qla_os.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/scsi/qla2xxx/qla_os.c +4 -0
@@ -3531,6 +3531,10 @@ qla2x00_shutdown(struct pci_dev *pdev)qla2x00_try_to_stop_firmware (vha); } +/* Disable timer */ +if (vha->timer_active) +qla2x00_stop_timer (vha); +/* Turn adapter off line */ vha->flags.online =0 ;
Signature · 1 line
2.23.0
Martin K. Petersen
AppliedNicholas,
Quoted 1 line
In shutdown/reboot paths, the timer is not stopped:
Applied to 5.4/scsi-fixes, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering