Commit 46f00d18 authored by Alexei Starovoitov's avatar Alexei Starovoitov Committed by Paul E. McKenney

rcu: Make rcu_is_watching() really notrace

Although rcu_is_watching() is marked notrace, it invokes preempt_disable()
and preempt_enable(), both of which can be traced.  This defeats the
purpose of the notrace on rcu_is_watching(), so this commit substitutes
preempt_disable_notrace() and preempt_enable_notrace().
Signed-off-by: default avatarAlexei Starovoitov <>
Signed-off-by: default avatarPaul E. McKenney <>
Acked-by: default avatarSteven Rostedt <>
parent 779de6ce
......@@ -978,9 +978,9 @@ bool notrace rcu_is_watching(void)
bool ret;
ret = __rcu_is_watching();
return ret;
Markdown is supported
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