aboutsummaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2012-12-12 16:52:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 20:38:34 -0500
commit0fa84a4bfa2aac8c04d45351b40765d61e1fd20d (patch)
treedd3b1a2525b062116cbe672deaf560aa7d2f27b3 /mm/oom_kill.c
parentefacd02e4f57d94e934ba5c84f10f8ce91158770 (diff)
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 <rientjes@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c1
1 files changed, 0 insertions, 1 deletions
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)
683 out_of_memory(NULL, 0, 0, NULL, false); 683 out_of_memory(NULL, 0, 0, NULL, false);
684 clear_zonelist_oom(zonelist, GFP_KERNEL); 684 clear_zonelist_oom(zonelist, GFP_KERNEL);
685 } 685 }
686 schedule_timeout_killable(1);
687} 686}