[PATCH bpf-next 2/2] bpf: Switch bpf arena to use drm_mm instead of maple_tree

Kumar Kartikeya Dwivedi memxor at gmail.com
Sun Nov 3 20:04:05 UTC 2024


On Fri, 1 Nov 2024 at 18:55, Alexei Starovoitov
<alexei.starovoitov at gmail.com> wrote:
>
> From: Alexei Starovoitov <ast at kernel.org>
>
> bpf arena is moving towards non-sleepable allocations in tracing
> context while maple_tree does kmalloc/kfree deep inside. Hence switch
> bpf arena to drm_mm algorithm that works with externally provided
> drm_mm_node-s. This patch kmalloc/kfree-s drm_mm_node-s, but the next
> patch will switch to bpf_mem_alloc and preallocated drm_mm_node-s.
>
> Signed-off-by: Alexei Starovoitov <ast at kernel.org>
> ---

Acked-by: Kumar Kartikeya Dwivedi <memxor at gmail.com>


More information about the dri-devel mailing list