]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Disable preemption in rcu_blocking_is_gp()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 19 Jun 2012 18:58:27 +0000 (11:58 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:25 +0000 (12:34 -0700)
commit95f0c1de3e6ed4383cc4b5f52ce4ecfb21026b49
tree8099a405c03d9caabbf8f1752346e0aa0e30ee28
parent1c17e4d4437d8045a596d9f06c1558dc09e2b372
rcu: Disable preemption in rcu_blocking_is_gp()

It is time to optimize CONFIG_TREE_PREEMPT_RCU's synchronize_rcu()
for uniprocessor optimization, which means that rcu_blocking_is_gp()
can no longer rely on RCU read-side critical sections having disabled
preemption.  This commit therefore disables preemption across
rcu_blocking_is_gp()'s scan of the cpu_online_mask.

(Updated from previous version to fix embarrassing bug spotted by
Wu Fengguang.)

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c