Re: [PATCH bpf-next 09/18] bpf: allow struct bpf_wq to be embedded in arraymaps and hashmaps

2024-04-19 Thread Alexei Starovoitov
On Tue, Apr 16, 2024 at 04:08:22PM +0200, Benjamin Tissoires wrote: > WRITE_ONCE(*(u64 *)field_ptr, 0); > @@ -1119,6 +1127,8 @@ static int map_check_btf(struct bpf_map *map, struct > bpf_token *token, > } > break; >

[PATCH bpf-next 09/18] bpf: allow struct bpf_wq to be embedded in arraymaps and hashmaps

2024-04-16 Thread Benjamin Tissoires
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 --- include/linux/bpf.h | 2 ++ kernel/bpf/arraymap.c | 18 ++--- kernel/bpf/hashtab.c |