aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2022-09-02 21:10:53 +0000
committerDaniel Borkmann <[email protected]>2022-09-05 13:33:06 +0000
commitee4ed53c5eb62f49f23560cc2642353547e46c32 (patch)
treeb231a358f08114c88f8a3baf34e8c0508300636b /drivers/usb/cdns3/cdns3-plat.c
parentbpf: Add percpu allocation support to bpf_mem_alloc. (diff)
downloadkernel-ee4ed53c5eb62f49f23560cc2642353547e46c32.tar.gz
kernel-ee4ed53c5eb62f49f23560cc2642353547e46c32.zip
bpf: Convert percpu hash map to per-cpu bpf_mem_alloc.
Convert dynamic allocations in percpu hash map from alloc_percpu() to bpf_mem_cache_alloc() from per-cpu bpf_mem_alloc. Since bpf_mem_alloc frees objects after RCU gp the call_rcu() is removed. pcpu_init_value() now needs to zero-fill per-cpu allocations, since dynamically allocated map elements are now similar to full prealloc, since alloc_percpu() is not called inline and the elements are reused in the freelist. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Kumar Kartikeya Dwivedi <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions