| Date | Thu, 6 Sep 2012 13:58:56 -0700 | From | "Paul E. McKenney" <> | Subject | Re: [PATCH tip/core/rcu 03/15] rcu: Properly initialize ->boost_tasks on CPU offline |
| |
On Thu, Sep 06, 2012 at 04:40:38PM +0200, Peter Zijlstra wrote: > On Thu, 2012-08-30 at 11:56 -0700, Paul E. McKenney wrote: > > When rcu_preempt_offline_tasks() clears tasks from a leaf rcu_node > > structure, it does not NULL out the structure's ->boost_tasks field. > > This commit therefore fixes this issue. > > What would have been the side-effects of this? Would rcu-boosting have > been able to go funny on hotplug, and if so, how?
In some circumstances, this could prevent any future RCU boosting. The ->boost_tasks field would be non-NULL, so it wouldn't ever try boosting again, having been fooled into thinking that the previous boost attempt was still in progress.
The expected segfault is prevented by the fact that an attempt to initiate a boost first checks for ->boost_tasks being non-NULL, and if so, declines to wake up the RCU-boost kthread.
Thanx, Paul
|