]> 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>
Tue, 6 Sep 2011 18:27:03 +0000 (11:27 -0700)
commitfe531b9a8019432e7ff945aa8afc68b6a4d83869
tree833e1568756cb74fb55fc07714046ee2697a82a7
parentb52154b66dba6577fd1fbc8129e31bd034d23c92
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