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

Commits d065bd810b6de ("mm: retry page fault when blocking on disk
transfer") and 37b23e0525d3 ("x86,mm: make pagefault killable") 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 AVR32.

Signed-off-by: Mohd. Faris <mohdfarisq2010@gmail.com>
Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/avr32/mm/fault.c