sh/mm/fault_32.c: Port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Sat, 31 Mar 2012 12:06:11 +0000 (08:06 -0400)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 11 Apr 2012 03:37:54 +0000 (12:37 +0900)
commit11fd982400a8779cb4b5f7cdc806008569ff545c
treec87061068b9dc94ae4bdecb760ec005fd182fd09
parentbbb4ce50f3169b08764f9965fd5b9655646d545a
sh/mm/fault_32.c: Port OOM changes to do_page_fault

Commit d065bd810b6deb67d4897a14bfe21f8eb526ba99
(mm: retry page fault when blocking on disk transfer) and
commit 37b23e0525d393d48a7d59f870b3bc061a30ccdb
(x86,mm: make pagefault killable)

The above commits introduced changes into the x86 pagefault handler
for making the page fault handler retryable as well as killable.

These changes reduce the mmap_sem hold time, which is crucial
during OOM killer invocation.

Port these changes to the 32-bit SH platform.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/fault_32.c