]> git.karo-electronics.de Git - karo-tx-linux.git/commit
notifier: Substitute rcu_access_pointer() for rcu_dereference_raw()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 12 Feb 2014 21:02:22 +0000 (13:02 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 26 Feb 2014 14:35:13 +0000 (06:35 -0800)
commit8857563b819b140aa8c9be920cfe44d5d3f808b7
tree1fd7568acae29cd051e41f665c83a50c1bcdb10e
parentadd1f0995454374d90c9d6b2c420d2fba3d0a4e3
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>
kernel/notifier.c