]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
um/kernel/trap.c: port OOM changes to handle_page_fault()
authorKautuk Consul <consul.kautuk@gmail.com>
Wed, 4 Apr 2012 00:08:23 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:49 +0000 (14:45 +1000)
commitf3636787fea40c15120455faf06ff45ee3aa5a2d
treeb0e74ef7fd67d8b760d00c1f7d292b9d2d9e0bf6
parent9b011f7f2ba02f44eefcc31af42c340b2c6601d7
um/kernel/trap.c: port OOM changes to handle_page_fault()

Commit d065bd810b6deb6 ("mm: retry page fault when blocking on disk
transfer") and commit 37b23e0525 ("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 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>
arch/um/kernel/trap.c