diff options
author | Alexei Starovoitov <[email protected]> | 2023-07-05 20:34:39 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-07-12 23:45:22 +0200 |
commit | 7468048237b8a99c03e1325b11373f9b29ef4139 (patch) | |
tree | b47ea7177bd81bfff6e005f1879615b7fa92f617 /drivers/fpga/fpga-mgr.c | |
parent | 18e027b1c7c6dd858b36305468251a5e4a6bcdf7 (diff) |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Hou Tao <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions