hexagon/mm/vm_fault.c: Port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Tue, 20 Mar 2012 13:23:33 +0000 (09:23 -0400)
committerRichard Kuo <rkuo@codeaurora.org>
Tue, 22 May 2012 23:40:45 +0000 (18:40 -0500)
commit393a86af71b5bc6b11eac8e1594fb8be4c2ce84c
tree574fb994836c880a3949118890176d799384ae4d
parent222c547ee7155045dc20c26d39191b0e9b49f6a8
hexagon/mm/vm_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 hexagon.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/mm/vm_fault.c