]> git.baikalelectronics.ru Git - kernel.git/commit
mm, page_alloc: warn for non-blockable __GFP_NOFAIL allocation failure
authorDavid Rientjes <rientjes@google.com>
Tue, 21 Jan 2014 23:51:12 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:49 +0000 (16:19 -0800)
commit25a54412c1802078ef3410de43fcdb17882dd97d
tree503af52f3d2d7ae2d3cdccb648fcd7977658f9ea
parentc9f5f1d7c3909308b7763c6e18d03b0a0ca92828
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c