]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa/mm/fault.c: port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Sat, 21 Jul 2012 00:53:53 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:20 +0000 (13:02 +1000)
commit5a2769de77ee31e44df86f037b8596f1de2c6dca
tree712be4db3812957c465624d81cd4e48dc7d34d60
parentbc3dcbdab77a598201102fdaf551d219cad1f4d8
xtensa/mm/fault.c: port OOM changes to do_page_fault

d065bd810b6de ("mm: retry page fault when blocking on disk transfer") and
37b23e0525d393d ("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 xtensa.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Acked-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/xtensa/mm/fault.c