]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, oom: remove redundant sleep in pagefault oom handler
authorDavid Rientjes <rientjes@google.com>
Thu, 29 Nov 2012 03:18:09 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:21 +0000 (16:23 +1100)
commit691d8851ebd129e51680ba5324a27d2f2ddcb460
tree9d4ccf6e30a2d5b52777dff9f5be85fe3a03b5d8
parent8f23de2251539aaf853cb13eb6a41d56bfa089bd
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>
mm/oom_kill.c