aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2023-07-05 20:34:41 -0700
committerDaniel Borkmann <[email protected]>2023-07-12 23:45:23 +0200
commit822fb26bdb55932d0635f43cc418d2004b19e358 (patch)
tree56396c29343e4e62eae039ebddd869614d774e0d /drivers/fpga/fpga-mgr.c
parentd114dde245f9115b73756203b03a633a6fc1b36a (diff)
bpf: Add a hint to allocated objects.
To address OOM issue when one cpu is allocating and another cpu is freeing add a target bpf_mem_cache hint to allocated objects and when local cpu free_llist overflows free to that bpf_mem_cache. The hint addresses the OOM while maintaining the same performance for common case when alloc/free are done on the same cpu. Note that do_call_rcu_ttrace() now has to check 'draining' flag in one more case, since do_call_rcu_ttrace() is called not only for current cpu. 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