lkml.org 
[lkml]   [2012]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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



    \
     
     \ /
      Last update: 2012-09-06 23:42    [W:4.217 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site