Revision be0e1e21ef707be4d16ea6a96ac9997463e4b8d2 authored by Paul E. McKenney on 21 May 2011, 12:57:18 UTC, committed by Paul E. McKenney on 20 July 2011, 04:38:53 UTC
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 <torvalds@linux-foundation.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
1 parent 7765be2
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...