Thread (18 messages) 18 messages, 2 authors, 49m ago

Re: [PATCH bpf-next v2 01/15] bpf: Remove __rcu tagging in st_link->map

From: Eduard Zingerman <eddyz87@gmail.com>
Date: 2026-06-26 18:52:10
Also in: bpf

On Tue, 2026-06-23 at 10:49 -0700, Amery Hung wrote:
From: Martin KaFai Lau <martin.lau@kernel.org>

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 <redacted>
---
Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help