diff options
author | 2011-08-01 06:22:11 -0700 | |
---|---|---|
committer | 2011-09-28 21:38:35 -0700 | |
commit | 6206ab9bab620fc0fbbed30ce20d145b0b3d1840 (patch) | |
tree | b57912ba9fff6f2deba89c0178d3122bbd1fda6e /kernel/rtmutex.c | |
parent | rcu: Improve rcu_assign_pointer() and RCU_INIT_POINTER() documentation (diff) | |
download | wireguard-linux-6206ab9bab620fc0fbbed30ce20d145b0b3d1840.tar.xz wireguard-linux-6206ab9bab620fc0fbbed30ce20d145b0b3d1840.zip |
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>
Diffstat (limited to 'kernel/rtmutex.c')
0 files changed, 0 insertions, 0 deletions