diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-01-02 12:02:28 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-01-02 14:31:59 -0800 |
| commit | e66fe1bc6d25d6fbced99de6c377f1b3d961a80e (patch) | |
| tree | 018b2c54148636e944445795b87b9525a517ba28 /include/clocksource | |
| parent | 817593af7b9ba56c23d9dd1858232c5493a14f55 (diff) | |
bpf: arena: Reintroduce memcg accounting
When arena allocations were converted from bpf_map_alloc_pages() to
kmalloc_nolock() to support non-sleepable contexts, memcg accounting was
inadvertently lost. This commit restores proper memory accounting for
all arena-related allocations.
All arena related allocations are accounted into memcg of the process
that created bpf_arena.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20260102200230.25168-3-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions
