]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Retire rcu_trace_implies_rcu_gp()
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 7 Apr 2026 16:22:33 +0000 (18:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Apr 2026 19:24:49 +0000 (12:24 -0700)
commit57b23c0f612dcfa1aae99c9422d6d36ced1670d4
treeda0dc70d4373e430095714eb14c2b6606e864d01
parenta8aa306741cdeb7b1cb4832133390f9cd08ece14
bpf: Retire rcu_trace_implies_rcu_gp()

RCU Tasks Trace grace period implies RCU grace period, and this
guarantee is expected to remain in the future. Only BPF is the user of
this predicate, hence retire the API and clean up all in-tree users.

RCU Tasks Trace is now implemented on SRCU-fast and its grace period
mechanism always has at least one call to synchronize_rcu() as it is
required for SRCU-fast's correctness (it replaces the smp_mb() that
SRCU-fast readers skip). So, RCU-tt GP will always imply RCU GP.

Reviewed-by: Puranjay Mohan <puranjay@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260407162234.785270-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/rcupdate.h
kernel/bpf/core.c
kernel/bpf/helpers.c
kernel/bpf/memalloc.c
kernel/bpf/syscall.c