]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Move __rcu_read_unlock()'s barrier() within if-statement
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 1 Aug 2011 13:22:11 +0000 (06:22 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 10 Aug 2011 02:28:42 +0000 (19:28 -0700)
commit98a868079eb30a8e7c090ca6b7cbc33e28b72dfa
tree93e99addc576dd3235c07d660e4df0b3f2bf43ec
parent896cb6e46c65e8008c33e97339abb59bf2ef0f3b
rcu: Move __rcu_read_unlock()'s barrier() within if-statement

We only need to constrain the compiler if we are actually exiting
the top-level RCU read-side critical section.  This commit therefore
moves the first barrier() cal in __rcu_read_unlock() to inside the
"if" statement, thus avoiding needless register flushes for inner
rcu_read_unlock() calls.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
kernel/rcutree_plugin.h