]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcu: Mark diagnostic functions as notrace
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 5 Nov 2025 20:32:11 +0000 (12:32 -0800)
committerFrederic Weisbecker <frederic@kernel.org>
Fri, 7 Nov 2025 12:57:37 +0000 (13:57 +0100)
commit3ed04e3f0362351a57cb3eda1c504506f2df82b1
tree089a670b794f80d1dc3b02755f2daf416430d3d3
parent8c8250ee3b3d9e4aaba6f33cfb743e900a773db0
rcu: Mark diagnostic functions as notrace

The rcu_lockdep_current_cpu_online(), rcu_read_lock_sched_held(),
rcu_read_lock_held(), rcu_read_lock_bh_held(), rcu_read_lock_any_held()
are used by tracing-related code paths, so putting traces on them is
unlikely to make anyone happy.  This commit therefore marks them all
"notrace".

Reported-by: Leon Hwang <leon.hwang@linux.dev>
Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/tree.c
kernel/rcu/update.c