public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v1 0/3] Use kmalloc_nolock() universally in BPF local storage
@ 2026-04-11  0:17 Amery Hung
  2026-04-11  0:17 ` [PATCH bpf-next v1 1/3] selftests/bpf: Remove kmalloc tracing from local storage create bench Amery Hung
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Amery Hung @ 2026-04-11  0:17 UTC (permalink / raw)
  To: bpf
  Cc: netdev, alexei.starovoitov, andrii, daniel, martin.lau, memxor,
	ameryhung, kernel-team

Socket local storage did not convert to use kmalloc_nolock() since there
were observable performance degredation due to kfree_nolock() hitting the
slow path and the lack of kfree_rcu()-like batching freeing. Now that
these concern were addressed in slub, convert all remaining local storage
flavors to use kmalloc_nolock().


Amery Hung (3):
  selftests/bpf: Remove kmalloc tracing from local storage create bench
  bpf: Use kmalloc_nolock() universally in local storage
  bpf: Remove gfp_flags plumbing from bpf_local_storage_update()

 include/linux/bpf_local_storage.h             |  15 +-
 kernel/bpf/bpf_cgrp_storage.c                 |  11 +-
 kernel/bpf/bpf_inode_storage.c                |  11 +-
 kernel/bpf/bpf_local_storage.c                | 146 +++---------------
 kernel/bpf/bpf_task_storage.c                 |  11 +-
 kernel/bpf/verifier.c                         |  26 ----
 net/core/bpf_sk_storage.c                     |  19 +--
 .../bpf/benchs/bench_local_storage_create.c   |  21 +--
 .../bpf/progs/bench_local_storage_create.c    |  11 --
 9 files changed, 55 insertions(+), 216 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-11  1:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11  0:17 [PATCH bpf-next v1 0/3] Use kmalloc_nolock() universally in BPF local storage Amery Hung
2026-04-11  0:17 ` [PATCH bpf-next v1 1/3] selftests/bpf: Remove kmalloc tracing from local storage create bench Amery Hung
2026-04-11  0:17 ` [PATCH bpf-next v1 2/3] bpf: Use kmalloc_nolock() universally in local storage Amery Hung
2026-04-11  0:17 ` [PATCH bpf-next v1 3/3] bpf: Remove gfp_flags plumbing from bpf_local_storage_update() Amery Hung
2026-04-11  0:51   ` bot+bpf-ci
2026-04-11  1:19     ` Alexei Starovoitov
2026-04-11  1:28       ` Amery Hung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox