Home
last modified time | relevance | path

Searched hist:"8857563 b819b140aa8c9be920cfe44d5d3f808b7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/kernel/
H A Dnotifier.cdiff 8857563b819b140aa8c9be920cfe44d5d3f808b7 Wed Feb 12 15:02:22 CST 2014 Paul E. McKenney <paulmck@linux.vnet.ibm.com> notifier: Substitute rcu_access_pointer() for rcu_dereference_raw()

(Trivial patch.)

If the code is looking at the RCU-protected pointer itself, but not
dereferencing it, the rcu_dereference() functions can be downgraded
to rcu_access_pointer(). This commit makes this downgrade in
__blocking_notifier_call_chain() which simply compares the RCU-protected
pointer against NULL with no dereferencing.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>