]> 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>
Fri, 3 Jan 2014 03:10:01 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:01 +0000 (14:10 +1100)
commit3a886a9c024dce7c04303759719d262505c71493
treecb9809c91766399850f4a0d06b4e73cc3dc4ca57
parentc0a64bb9d01dc38aa20e895ccb1dfaca80b4041f
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