author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2020-04-02 21:16:30 +0200
committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:41 +0800
commit: b3d89e9d915153d6e7a2d56a61217292663be4bb
parent: d705d190922314ae340cb70c5f96eb17aa0d2149
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/lib/irq_poll.c b/lib/irq_poll.c
index 2f17b488d58e..2b9f797642f6 100644
--- a/lib/irq_poll.c
+++ b/lib/irq_poll.c
@@ -191,11 +191,13 @@ static int irq_poll_cpu_dead(unsigned int cpu)
* If a CPU goes away, splice its entries to the current CPU
* and trigger a run of the softirq
*/
+ local_bh_disable();
local_irq_disable();
list_splice_init(&per_cpu(blk_cpu_iopoll, cpu),
this_cpu_ptr(&blk_cpu_iopoll));
__raise_softirq_irqoff(IRQ_POLL_SOFTIRQ);
local_irq_enable();
+ local_bh_enable();
return 0;
}