aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/rcutiny.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2023-07-05 20:34:39 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2023-07-12 23:45:22 +0200
commit7468048237b8a99c03e1325b11373f9b29ef4139 (patch)
treeb47ea7177bd81bfff6e005f1879615b7fa92f617 /include/linux/rcutiny.h
parentbpf: Factor out inc/dec of active flag into helpers. (diff)
downloadwireguard-linux-7468048237b8a99c03e1325b11373f9b29ef4139.tar.xz
wireguard-linux-7468048237b8a99c03e1325b11373f9b29ef4139.zip
bpf: Further refactor alloc_bulk().
In certain scenarios alloc_bulk() might be taking free objects mainly from free_by_rcu_ttrace list. In such case get_memcg() and set_active_memcg() are redundant, but they show up in perf profile. Split the loop and only set memcg when allocating from slab. No performance difference in this patch alone, but it helps in combination with further patches. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Hou Tao <houtao1@huawei.com> Link: https://lore.kernel.org/bpf/20230706033447.54696-7-alexei.starovoitov@gmail.com
Diffstat (limited to 'include/linux/rcutiny.h')
0 files changed, 0 insertions, 0 deletions