mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
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: Alexei Starovoitov <ast@plumgrid.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
779de6ce54
commit
46f00d18fc
1 changed files with 2 additions and 2 deletions
|
@ -978,9 +978,9 @@ bool notrace rcu_is_watching(void)
|
|||
{
|
||||
bool ret;
|
||||
|
||||
preempt_disable();
|
||||
preempt_disable_notrace();
|
||||
ret = __rcu_is_watching();
|
||||
preempt_enable();
|
||||
preempt_enable_notrace();
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcu_is_watching);
|
||||
|
|
Loading…
Reference in a new issue