btrfs: fix race between quota disable and quota assign ioctls
[platform/kernel/linux-rpi.git] / lib / irq_poll.c
index 2f17b48..2b9f797 100644 (file)
@@ -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;
 }