]> www.infradead.org Git - users/dwmw2/linux.git/commit
srcu: Add SRCU_READ_FLAVOR_SLOWGP to flag need for synchronize_rcu()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 8 Jan 2025 14:48:15 +0000 (06:48 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:12:05 +0000 (07:12 -0800)
commit4d86b1e7e1e98eb1f0e3c5a4635a5c37cbd22919
tree6168181a0fbdc8c7e906975d6d2e88ac06600b15
parent780818a68132d45d074353fc66f5f116074c3c14
srcu: Add SRCU_READ_FLAVOR_SLOWGP to flag need for synchronize_rcu()

This commit switches from a direct test of SRCU_READ_FLAVOR_LITE to a new
SRCU_READ_FLAVOR_SLOWGP macro to check for substituting synchronize_rcu()
for smp_mb() in SRCU grace periods.  Right now, SRCU_READ_FLAVOR_SLOWGP
is exactly SRCU_READ_FLAVOR_LITE, but the addition of the _fast() flavor
of SRCU will change that.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
include/linux/srcu.h
kernel/rcu/srcutree.c