From: Paul E. McKenney Date: Mon, 1 Aug 2011 13:22:11 +0000 (-0700) Subject: rcu: Move __rcu_read_unlock()'s barrier() within if-statement X-Git-Tag: v3.2-rc1~165^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6206ab9bab620fc0fbbed30ce20d145b0b3d1840;p=pandora-kernel.git 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 Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed