]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa/mm/fault.c: port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Mon, 30 Jul 2012 21:39:21 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:11 +0000 (17:25 -0700)
commit29b125217d04c528f94dbe79b8e2cc50cede0398
tree9d84473e8d20396f1c08dd21fd168d9a4f9ccc09
parent8a3e33228c51cee34f74a2e6cd02f72f36447c13
xtensa/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 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/xtensa/mm/fault.c