Skip to content
Commit e5177ec7 authored by Michal Hocko's avatar Michal Hocko Committed by Paul E. McKenney
Browse files

rcu: Not necessary to pass rcu_read_lock_held() to rcu_dereference_protected()



Since ca5ecddf (rcu: define __rcu address space modifier for sparse)
rcu_dereference_check() use rcu_read_lock_held() as a part of condition
automatically.  Therefore, callers of rcu_dereference_check() no longer
need to pass rcu_read_lock_held() to rcu_dereference_check().

Signed-off-by: default avatarMichal Hocko <mhocko@suse.cz>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent e4cc1f22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment