bpf: allow struct bpf_wq to be embedded in arraymaps and hashmaps
authorBenjamin Tissoires <bentiss@kernel.org>
Sat, 20 Apr 2024 09:09:09 +0000 (11:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 24 Apr 2024 01:31:25 +0000 (18:31 -0700)
commit246331e3f1eac905170a923f0ec76725c2558232
tree1755b8cb148983f6d91ea433cbad3d2432167300
parentd940c9b94d7e6d9cff288623e3e8bf5fdea98b79
bpf: allow struct bpf_wq to be embedded in arraymaps and hashmaps

Currently bpf_wq_cancel_and_free() is just a placeholder as there is
no memory allocation for bpf_wq just yet.

Again, duplication of the bpf_timer approach

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240420-bpf_wq-v2-9-6c986a5a741f@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/arraymap.c
kernel/bpf/hashtab.c
kernel/bpf/helpers.c
kernel/bpf/syscall.c