]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
srcu: Move rcu_is_watching() checks to srcu_read_{,un}lock_fast()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 16 Jul 2025 04:09:13 +0000 (21:09 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 14 Aug 2025 22:25:48 +0000 (15:25 -0700)
commitf39494089aaa1022008eee245fb83ef1ae911b6d
tree2e3dfea5144e79e4915d39080f2ff95fabba92c1
parent61399e0c5410567ef60cb1cda34cca42903842e3
srcu: Move rcu_is_watching() checks to srcu_read_{,un}lock_fast()

The rcu_is_watching() warnings are currently in the SRCU-tree
implementations of __srcu_read_lock_fast() and __srcu_read_unlock_fast().
However, this makes it difficult to create _notrace variants of
srcu_read_lock_fast() and srcu_read_unlock_fast().  This commit therefore
moves these checks to srcu_read_lock_fast(), srcu_read_unlock_fast(),
srcu_down_read_fast(), and srcu_up_read_fast().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: <bpf@vger.kernel.org>
include/linux/srcu.h
include/linux/srcutree.h