From: David Rientjes Date: Thu, 29 Nov 2012 03:18:09 +0000 (+1100) Subject: mm, oom: remove redundant sleep in pagefault oom handler X-Git-Tag: next-20121205~1^2~231 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=691d8851ebd129e51680ba5324a27d2f2ddcb460;p=karo-tx-linux.git mm, oom: remove redundant sleep in pagefault oom handler out_of_memory() will already cause current to schedule if it has not been killed, so doing it again in pagefault_out_of_memory() is redundant. Remove it. Signed-off-by: David Rientjes Acked-by: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Reviewed-by: Michal Hocko Signed-off-by: Andrew Morton --- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 0e30ff7b21c5..0399f146ae49 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -683,5 +683,4 @@ void pagefault_out_of_memory(void) out_of_memory(NULL, 0, 0, NULL, false); clear_zonelist_oom(zonelist, GFP_KERNEL); } - schedule_timeout_killable(1); }