[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YWfZr+lL2lrBhSc/@dhcp22.suse.cz>
Date: Thu, 14 Oct 2021 09:18:07 +0200
From: Michal Hocko <mhocko@...e.com>
To: Vasily Averin <vvs@...tuozzo.com>
Cc: Shakeel Butt <shakeelb@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Mel Gorman <mgorman@...hsingularity.net>,
Uladzislau Rezki <urezki@...il.com>,
Roman Gushchin <guro@...com>,
Andrew Morton <akpm@...ux-foundation.org>,
cgroups@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] memcg: page_alloc: skip bulk allocator for __GFP_ACCOUNT
On Thu 14-10-21 10:05:21, Vasily Averin wrote:
[...]
> > + /* Bulk allocator does not support memcg accounting. */
> > + if (unlikely(gfp & __GFP_ACCOUNT))
> > + goto out;
> > +
>
> May be (memcg_kmem_enabled() && (gfp & __GFP_ACCOUNT)) check is better here?
Yes please
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists