diff options
author | Luo Jiaxing <[email protected]> | 2021-01-26 19:04:27 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-01-26 23:02:11 -0500 |
commit | 6834ec8b23c3eb345936022d46179b9d371e2344 (patch) | |
tree | b847bfdb407b52df2ce2cb25ce8c231c60c660b4 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 1dbe61bf7d760547d16ccf057572e641a653ad4a (diff) |
scsi: hisi_sas: Flush workqueue in hisi_sas_v3_remove()
If the controller reset occurs at the same time as driver removal, it may
be possible that the interrupts have been released prior to the host
softreset, and calling pci_irq_vector() there causes a WARN:
WARNING: CPU: 37 PID: 1542 /pci/msi.c:1275 pci_irq_vector+0xc0/0xd0
Call trace:
pci_irq_vector+0xc0/0xd0
disable_host_v3_hw+0x58/0x5b0 [hisi_sas_v3_hw]
soft_reset_v3_hw+0x40/0xc0 [hisi_sas_v3_hw]
hisi_sas_controller_reset+0x150/0x260 [hisi_sas_main]
hisi_sas_rst_work_handler+0x3c/0x58 [hisi_sas_main]
To fix, flush the driver workqueue prior to releasing the interrupts to
ensure any resets have been completed.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Luo Jiaxing <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions