diff options
author | Roman Gushchin <[email protected]> | 2022-07-01 20:35:21 -0700 |
---|---|---|
committer | akpm <[email protected]> | 2022-07-29 18:07:14 -0700 |
commit | d6e103a757fa7876e7ded76128d5dffe12402ab9 (patch) | |
tree | 5ea391af7dacedee1b69273a4f5f1eb5edb74826 /net/lapb/lapb_in.c | |
parent | ccac11da679bc283a5fe3db694d9f4f40245a07e (diff) |
mm: memcontrol: do not miss MEMCG_MAX events for enforced allocations
Yafang Shao reported an issue related to the accounting of bpf memory:
if a bpf map is charged indirectly for memory consumed from an
interrupt context and allocations are enforced, MEMCG_MAX events are
not raised.
It's not/less of an issue in a generic case because consequent
allocations from a process context will trigger the direct reclaim and
MEMCG_MAX events will be raised. However a bpf map can belong to a
dying/abandoned memory cgroup, so there will be no allocations from a
process context and no MEMCG_MAX events will be triggered.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Roman Gushchin <[email protected]>
Reported-by: Yafang Shao <[email protected]>
Acked-by: Shakeel Butt <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions