Thread (1 message) 1 message, 1 author, 11d ago

Re: [PATCH bpf-next v3 5/9] bpf: defer vmlinux kfunc and struct_ops registrations

flat view

From: Jay Wang <hidden>
Date: 2026-10-01 23:52:15
Also in: bpf, linux-kbuild, linux-modules, lkml, rust-for-linux

Right, the comment and changelog were stale.  v4 (patches 6 and 7/12)
states what the separate lock does keep:
https://lore.kernel.org/bpf/20261001225214.12351-1-wanjay@amazon.com/ (local)

With its own lock, btf_module_mutex, which the module notifier takes,
is never taken under btf_vmlinux_lock, so the two stay unordered.  The
code is unchanged.  In v4 fetching the BTF no longer takes
btf_vmlinux_lock with =m at all (it never loads or parses, see the reply
to Alexei on 4/9), so CO-RE fetches it under cand_cache_mutex again, as
upstream does; with =y nothing is queued.

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