• Paul E. McKenney's avatar
    rcu: decrease rcu_report_exp_rnp coupling with scheduler · 131906b0
    Paul E. McKenney authored
    PREEMPT_RCU read-side critical sections blocking an expedited grace
    period invoke rcu_report_exp_rnp().  When the last such critical section
    has completed, rcu_report_exp_rnp() invokes the scheduler to wake up the
    task that invoked synchronize_rcu_expedited() -- needlessly holding the
    root rcu_node structure's lock while doing so, thus needlessly providing
    a way for RCU and the scheduler to deadlock.
    
    This commit therefore releases the root rcu_node structure's lock before
    calling wake_up().
    Reported-by: default avatarEd Tomlinson <edt@aei.ca>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    131906b0
rcutree_plugin.h 57.3 KB