]> git.baikalelectronics.ru Git - kernel.git/commit
mm: update alloc_flags after oom killer has been called
authorDavid Rientjes <rientjes@google.com>
Tue, 22 Sep 2009 00:01:34 +0000 (17:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:27 +0000 (07:17 -0700)
commitc6602fd2dcc237f229c500655436d8488bd67937
tree43c43fcab1fd6eb897f7348a3b2c8071d61f2b6d
parentea0f802bf2481f90940440cc6f44314f78f8cea3
mm: update alloc_flags after oom killer has been called

It is possible for the oom killer to select current as the task to kill.
When this happens, alloc_flags needs to be updated accordingly to set
ALLOC_NO_WATERMARKS so the subsequent allocation attempt may use memory
reserves as the result of its thread having TIF_MEMDIE set if the
allocation is not __GFP_NOMEMALLOC.

Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c