sparc/mm/fault_64.c: Port OOM changes to do_sparc64_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Mon, 26 Mar 2012 06:40:49 +0000 (06:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 22:42:24 +0000 (15:42 -0700)
commit7358e51082b68e2026628220510a29197e2b9933
tree7ddfd1d23bf4559c0b8b3f29f41276ab7a9f08ae
parent64ebe987311853ea857a244439de5b947a4b1b07
sparc/mm/fault_64.c: Port OOM changes to do_sparc64_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 64-bit sparc.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/fault_64.c