]> git.baikalelectronics.ru Git - kernel.git/commit
avr32/mm/fault.c: port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Mon, 30 Jul 2012 21:39:25 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:11 +0000 (17:25 -0700)
commit8a082093a2598b33f3cc02947822e2ad89fabc3d
tree500736901ab3cc72e7f90332602d1419897ae1f9
parentf6c89735efe845d7412d3cb08d9e865b0e5f8e0c
avr32/mm/fault.c: port OOM changes to do_page_fault

Commits a99d657f79de ("mm: retry page fault when blocking on disk
transfer") and 64587d42be2d ("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.

[akpm@linux-foundation.org: fix comment layout]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/avr32/mm/fault.c