Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Acked-by: Mathieu Desnoyers <[email protected]>
- Loading branch information