]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, page_alloc: allow __GFP_NOFAIL to allocate below watermarks after reclaim
authorDavid Rientjes <rientjes@google.com>
Mon, 16 Dec 2013 23:45:14 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:14 +0000 (10:45 +1100)
commit4064a35d1373169a1a2a3ce8211bf9588dd26575
tree4348bb51a577bee1e437ad4630b4d1c582cd4d41
parentafafd048990ab99efe664129848a1e853cfc707f
mm, page_alloc: allow __GFP_NOFAIL to allocate below watermarks after reclaim

If direct reclaim has failed to free memory, __GFP_NOFAIL allocations can
potentially loop forever in the page allocator.  In this case, it's better
to give them the ability to access below watermarks so that they may
allocate similar to the same privilege given to GFP_ATOMIC allocations.

We're careful to ensure this is only done after direct reclaim has had the
chance to free memory, however.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c