openrisc/mm/fault.c: Port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Sat, 31 Mar 2012 12:00:51 +0000 (08:00 -0400)
committerJonas Bonn <jonas@southpole.se>
Tue, 8 May 2012 09:43:20 +0000 (11:43 +0200)
commit4971f2bdb746e6cc8423ea60f99694884f6052c5
tree9ad37df4ecc0d57b478f3f4f22b775bd4f848da8
parentad188f955a79f5501b0cd5bde2b0621b3c78044a
openrisc/mm/fault.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 openrisc.

Signed-off-by: Mohd. Faris <mohdfarisq2010@gmail.com>
Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
arch/openrisc/mm/fault.c