]> git.baikalelectronics.ru Git - kernel.git/commit
mm, oom: remove redundant sleep in pagefault oom handler
authorDavid Rientjes <rientjes@google.com>
Wed, 12 Dec 2012 21:52:07 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Dec 2012 01:38:34 +0000 (17:38 -0800)
commit0c52066a9a37c949cae9e698d6a441fd7fce9fa6
treedd3b1a2525b062116cbe672deaf560aa7d2f27b3
parent20dd530918d875fd690eac6c8c14cbf71c3de8fc
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>
mm/oom_kill.c