| Submitter | Paul E. McKenney |
|---|---|
| Subject | [tip/core/rcu,17/17] rcu: Add check for CPUs going offline with callbacks queued |
| Date | June 22, 2012, 3:35 p.m. |
| List thread | <1340379312-6684-17-git-send-email-paulmck@linux.vnet.ibm.com> |
| Project | linux-kernel |
| State | Accepted |
| Last updated | July 2, 2012, 7:34 p.m. |
| Commit | cf01537ecf192d9ff15c32a355db5d5af22bea4d |
| Headers | show |
Comments
Patch
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index c0cc41f..f849202 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -1506,6 +1506,9 @@ static void rcu_cleanup_dead_cpu(int cpu, struct rcu_state *rsp) raw_spin_unlock_irqrestore(&rnp->lock, flags); if (need_report & RCU_OFL_TASKS_EXP_GP) rcu_report_exp_rnp(rsp, rnp, true); + WARN_ONCE(rdp->qlen != 0 || rdp->nxtlist != NULL, + "rcu_cleanup_dead_cpu: Callbacks on offline CPU %d: qlen=%lu, nxtlist=%p\n", + cpu, rdp->qlen, rdp->nxtlist); } #else /* #ifdef CONFIG_HOTPLUG_CPU */
