Thread (14 messages) 14 messages, 6 authors, 2021-10-14

Re: [PATCH] memcg: page_alloc: skip bulk allocator for __GFP_ACCOUNT

From: Michal Hocko <mhocko@suse.com>
Date: 2021-10-14 07:18:16
Also in: cgroups, lkml

On Thu 14-10-21 10:05:21, Vasily Averin wrote:
[...]
quoted
+	/* 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help