Re: [PATCH mm v5] memcg: enable memory accounting in __alloc_pages_bulk

From: Andrew Morton
Date: Fri Oct 15 2021 - 17:34:10 EST


On Thu, 14 Oct 2021 11:02:57 +0300 Vasily Averin <vvs@xxxxxxxxxxxxx> wrote:

> Bulk page allocator is used in vmalloc where it can be called
> with __GFP_ACCOUNT and must charge allocated pages into memory cgroup.

Is this problem serious enough to justify -stable backporting? Some
words which explaining reasoning for the backport would be helpful.

This patch makes Shakeel's "memcg: page_alloc: skip bulk allocator for
__GFP_ACCOUNT" unnecessary. Which should we use?