]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Introduce bpf_timer_cancel_async() kfunc
authorAlexei Starovoitov <ast@kernel.org>
Sun, 1 Feb 2026 02:53:57 +0000 (18:53 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 4 Feb 2026 00:58:46 +0000 (16:58 -0800)
commita7e172aa4ca276d12fe87ffddff9cbd2d95ea51c
tree1733dea53915f11422dc63f1c42c38907f29db4c
parent19bd300e22c2be7df838fc4ea41b4e20ccd5c20f
bpf: Introduce bpf_timer_cancel_async() kfunc

Introduce bpf_timer_cancel_async() that wraps hrtimer_try_to_cancel()
and executes it either synchronously or defers to irq_work.

Co-developed-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260201025403.66625-4-alexei.starovoitov@gmail.com
kernel/bpf/helpers.c