]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, page_alloc: warn for non-blockable __GFP_NOFAIL allocation failure
authorDavid Rientjes <rientjes@google.com>
Mon, 16 Dec 2013 23:45:17 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:17 +0000 (10:45 +1100)
commitbac04e67349d5ab7ad7ffa78360ec62988ff2ad2
tree39a69d2f723559e25090dcb41c49030647a70afc
parent2adde29bd70b6a1d39f54bc40b3571e3c16b2b8e
mm, page_alloc: warn for non-blockable __GFP_NOFAIL allocation failure

__GFP_NOFAIL may return NULL when coupled with GFP_NOWAIT or GFP_ATOMIC.

Luckily, nothing currently does such craziness.  So instead of causing
such allocations to loop (potentially forever), we maintain the current
behavior and also warn about the new users of the deprecated flag.

Suggested-by: Andrew Morton <akpm@linux-foundation.org>
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