]> git.baikalelectronics.ru Git - kernel.git/commit
um/kernel/trap.c: port OOM changes to handle_page_fault()
authorKautuk Consul <consul.kautuk@gmail.com>
Thu, 31 May 2012 23:26:03 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:26 +0000 (17:49 -0700)
commitd3c384c7cc17f8d6531fd61d6b4303554627fb4b
tree6810a5c8f413f67d359da6243ee75c60c704d16c
parent3a53255950d6f7d66309a797663523a484b3f232
um/kernel/trap.c: port OOM changes to handle_page_fault()

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

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/trap.c