Linux-mm Archive on
 help / color / Atom feed
* [PATCH] mm, slaub: Add __GFP_ATOMIC to the GFP reclaim mask
@ 2016-06-10  9:38 Mel Gorman
  2016-06-10 10:12 ` Vlastimil Babka
  2016-06-14  6:36 ` Michal Hocko
  0 siblings, 2 replies; 3+ messages in thread
From: Mel Gorman @ 2016-06-10  9:38 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Marcin Wojtas, linux-mm, linux-kernel, Vlastimil Babka

Commit d0164adc89f6 ("mm, page_alloc: distinguish between being unable to
sleep, unwilling to sleep and avoiding waking kswapd") modified __GFP_WAIT
to explicitly identify the difference between atomic callers and those that
were unwilling to sleep. Later the definition was removed entirely.

The GFP_RECLAIM_MASK is the set of flags that affect watermark checking
and reclaim behaviour but __GFP_ATOMIC was never added. Without it, atomic
users of the slab allocator strip the __GFP_ATOMIC flag and cannot access
the page allocator atomic reserves.  This patch addresses the problem.

The user-visible impact depends on the workload but potentially atomic
allocations unnecessarily fail without this path.

Cc: <> # 4.4+
Reported-by: Marcin Wojtas <>
Signed-off-by: Mel Gorman <>
 mm/internal.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mm/internal.h b/mm/internal.h
index a37e5b6f9d25..2524ec880e24 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -24,7 +24,8 @@
 /* The GFP flags allowed during early boot */

To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to  For more info on Linux MM,
see: .
Don't email: <a href=mailto:""> </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10  9:38 [PATCH] mm, slaub: Add __GFP_ATOMIC to the GFP reclaim mask Mel Gorman
2016-06-10 10:12 ` Vlastimil Babka
2016-06-14  6:36 ` Michal Hocko

Linux-mm Archive on

Archives are clonable:
	git clone --mirror linux-mm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mm linux-mm/ \
	public-inbox-index linux-mm

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone