diff options
| author | Song Shuai <[email protected]> | 2024-06-26 02:33:16 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-07-03 20:11:30 +0000 |
| commit | c562ba719df570c986caf0941fea2449150bcbc4 (patch) | |
| tree | c58aef9a875ebb4a1b41b970b9938ffa5039b0b7 /lib/test_xarray.c | |
| parent | riscv: stacktrace: fix usage of ftrace_graph_ret_addr() (diff) | |
| download | kernel-c562ba719df570c986caf0941fea2449150bcbc4.tar.gz kernel-c562ba719df570c986caf0941fea2449150bcbc4.zip | |
riscv: kexec: Avoid deadlock in kexec crash path
If the kexec crash code is called in the interrupt context, the
machine_kexec_mask_interrupts() function will trigger a deadlock while
trying to acquire the irqdesc spinlock and then deactivate irqchip in
irq_set_irqchip_state() function.
Unlike arm64, riscv only requires irq_eoi handler to complete EOI and
keeping irq_set_irqchip_state() will only leave this possible deadlock
without any use. So we simply remove it.
Link: https://lore.kernel.org/linux-riscv/[email protected]/
Fixes: b17d19a5314a ("riscv: kexec: Fixup irq controller broken in kexec crash path")
Signed-off-by: Song Shuai <[email protected]>
Reviewed-by: Ryo Takakura <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
