bpf: Allow reuse from waiting_for_gp_ttrace list.
authorAlexei Starovoitov <ast@kernel.org>
Thu, 6 Jul 2023 03:34:42 +0000 (20:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Jul 2023 21:45:23 +0000 (23:45 +0200)
commit04fabf00b4d3aff5d010ecb617001814e409e24a
treecf96390c0f04b284a514a4313441abd88eb8ee3e
parent822fb26bdb55932d0635f43cc418d2004b19e358
bpf: Allow reuse from waiting_for_gp_ttrace list.

alloc_bulk() can reuse elements from free_by_rcu_ttrace.
Let it reuse from waiting_for_gp_ttrace as well to avoid unnecessary kmalloc().

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230706033447.54696-10-alexei.starovoitov@gmail.com
kernel/bpf/memalloc.c