diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ba94fdbe3061..a1dba6e830c3 100755 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4273,8 +4273,10 @@ retry: /* Avoid allocations with no watermarks from looping endlessly */ if (tsk_is_oom_victim(current) && (alloc_flags == ALLOC_OOM || - (gfp_mask & __GFP_NOMEMALLOC))) + (gfp_mask & __GFP_NOMEMALLOC))) { + gfp_mask |= __GFP_NOWARN; goto nopage; + } /* Retry as long as the OOM killer is making progress */ if (did_some_progress) {