]> bbs.cooldavid.org Git - net-next-2.6.git/commit - kernel/rcutree_plugin.h
rcu: apply TINY_PREEMPT_RCU read-side speedup to TREE_PREEMPT_RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 19 Aug 2010 23:57:45 +0000 (16:57 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 20 Aug 2010 16:00:17 +0000 (09:00 -0700)
commit80dcf60e6b97c7363971e7a0a788d8484d35f8a6
tree2f493fdf6a7a52675733ac74daa9e1cd9342a030
parent7b0b759b65247cbc66384a912be9acf8d4800636
rcu: apply TINY_PREEMPT_RCU read-side speedup to TREE_PREEMPT_RCU

Replace one of the ACCESS_ONCE() calls in each of __rcu_read_lock()
and __rcu_read_unlock() with barrier() as suggested by Steve Rostedt in
order to avoid the potential compiler-optimization-induced bug noted by
Mathieu Desnoyers.

Located-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h