From: Paul E. McKenney Date: Sat, 21 May 2011 12:57:18 +0000 (-0700) Subject: rcu: Streamline code produced by __rcu_read_unlock() X-Git-Tag: v3.0~7^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be0e1e21ef707be4d16ea6a96ac9997463e4b8d2;p=pandora-kernel.git rcu: Streamline code produced by __rcu_read_unlock() Given some common flag combinations, particularly -Os, gcc will inline rcu_read_unlock_special() despite its being in an unlikely() clause. Use noinline to prohibit this misoptimization. In addition, move the second barrier() in __rcu_read_unlock() so that it is not on the common-case code path. This will allow the compiler to generate better code for the common-case path through __rcu_read_unlock(). Suggested-by: Linus Torvalds Signed-off-by: Paul E. McKenney Acked-by: Mathieu Desnoyers --- Reading git-diff-tree failed