]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Consistently use bpf_rcu_lock_held() everywhere
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Oct 2025 20:14:03 +0000 (13:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 15 Oct 2025 10:26:12 +0000 (12:26 +0200)
commit48a97ffc6c826640907d13b199e29008f4fe2c15
tree3e28e07a0b2211e20e94419411348491d1d0c8d9
parent39e9d5f63075f4d54e3b59b8238478c32af92755
bpf: Consistently use bpf_rcu_lock_held() everywhere

We have many places which open-code what's now is bpf_rcu_lock_held()
macro, so replace all those places with a clean and short macro invocation.
For that, move bpf_rcu_lock_held() macro into include/linux/bpf.h.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20251014201403.4104511-1-andrii@kernel.org
include/linux/bpf.h
include/linux/bpf_local_storage.h
kernel/bpf/hashtab.c
kernel/bpf/helpers.c