diff options
author | David Rientjes <[email protected]> | 2009-07-29 15:02:06 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-07-29 19:10:34 -0700 |
commit | 6583bb64fc370842b32a87c67750c26f6d559af0 (patch) | |
tree | 321681ebc6ff893318d67859b24f199b9111cbc8 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | e084b2d95e48b31aa45f9c49ffc6cdae8bdb21d4 (diff) |
mm: avoid endless looping for oom killed tasks
If a task is oom killed and still cannot find memory when trying with
no watermarks, it's better to fail the allocation attempt than to loop
endlessly. Direct reclaim has already failed and the oom killer will
be a no-op since current has yet to die, so there is no other
alternative for allocations that are not __GFP_NOFAIL.
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions