diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2026-09-17 13:05:27 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-19 05:32:55 +0000 |
| commit | 01208951214460946b3c71d442663c65a8f5a96f (patch) | |
| tree | 5ed88bdd3f6e43776c3263a050212f90c3393f7b /include/linux/debugobjects.h | |
| parent | 72a930db88c446bfd24dc06d9edecb66b266d734 (diff) | |
bpf: Remove __rcu tagging in st_link->map
st_link->map is always written under update_mutex. The paths that read
st_link->map with rcu_read_lock() are not in the fast path, so they can
simply take update_mutex instead. Remove the __rcu annotation and replace
all RCU accessors with direct pointer reads under update_mutex. Use
READ_ONCE() in bpf_struct_ops_map_link_poll() which reads the pointer
without holding update_mutex.
It is a simplification change.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://patch.msgid.link/20260917200542.3689605-2-ameryhung@gmail.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
