diff options
| author | 2026-01-20 15:59:13 +0000 | |
|---|---|---|
| committer | 2026-01-20 18:12:19 -0800 | |
| commit | 83c9030cdc45e0518d71065c25201a24eafc9818 (patch) | |
| tree | 0afd43321adf38d2a220f6b902f06eab2b39c62e /scripts/Makefile.thinlto | |
| parent | bpf: Introduce lock-free bpf_async_update_prog_callback() (diff) | |
bpf: Simplify bpf_timer_cancel()
Remove lock from the bpf_timer_cancel() helper. The lock does not
protect from concurrent modification of the bpf_async_cb data fields as
those are modified in the callback without locking.
Use guard(rcu)() instead of pair of explicit lock()/unlock().
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Link: https://lore.kernel.org/r/20260120-timer_nolock-v6-4-670ffdd787b4@meta.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
