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

2024-04-23 Thread Alexei Starovoitov
On Sat, Apr 20, 2024 at 2:09 AM Benjamin Tissoires wrote: > > > -static void htab_map_free_timers(struct bpf_map *map) > +static void htab_map_free_timers_and_wq(struct bpf_map *map) > { > struct bpf_htab *htab = container_of(map, struct bpf_htab, map); > > - /* We only free timer

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

2024-04-20 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 --- changes in v2: - removed extra fallthrough --- include/linux/bpf.h | 2 ++