]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: decrease rcu_report_exp_rnp coupling with scheduler
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 17 Jul 2011 09:05:49 +0000 (02:05 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 20 Jul 2011 04:38:51 +0000 (21:38 -0700)
commitb002e02ab3658d9423a782a60169a8c52d148b6c
tree1b92eacb707befb294b4d9985f10aa44715cba16
parent0bab9c8a1ba4f962239ac32e094a957ed31131fe
rcu: decrease rcu_report_exp_rnp coupling with scheduler

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: Ed Tomlinson <edt@aei.ca>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h