diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2025-11-06 17:06:07 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-11-06 15:55:19 -0800 |
| commit | f8c67d8550ee69ce684c7015b2c8c63cda24bbfb (patch) | |
| tree | 0b46dd04dc99c453e13f16d215d701d5b583fcb8 /tools/perf/python/git@git.tavy.me:linux.git | |
| parent | 6f1f4c1638fe95637a43699892c036c9ae908d9a (diff) | |
bpf: Use kmalloc_nolock() in range tree
The range tree uses bpf_mem_alloc() that is safe to be called from all
contexts and uses a pre-allocated pool of memory to serve these
allocations.
Replace bpf_mem_alloc() with kmalloc_nolock() as it can be called safely
from all contexts and is more scalable than bpf_mem_alloc().
Remove the migrate_disable/enable pairs as they were only needed for
bpf_mem_alloc() as it does per-cpu operations, kmalloc_nolock() doesn't
need this.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20251106170608.4800-1-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/python/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
