rcu: Suppress smp_processor_id() complaint in synchronize_rcu_expedited_wait()
[linux-2.6-microblaze.git] / kernel / rcu / tree_exp.h
index ed6c3cc..927abaf 100644 (file)
@@ -667,7 +667,9 @@ static void synchronize_rcu_expedited_wait(void)
                                mask = leaf_node_cpu_bit(rnp, cpu);
                                if (!(READ_ONCE(rnp->expmask) & mask))
                                        continue;
+                               preempt_disable(); // For smp_processor_id() in dump_cpu_task().
                                dump_cpu_task(cpu);
+                               preempt_enable();
                        }
                }
                jiffies_stall = 3 * rcu_exp_jiffies_till_stall_check() + 3;