]> git.karo-electronics.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, 25 Apr 2012 01:03:49 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:27 +0000 (15:17 +1000)
commitf600e8f77f36112efe9a596cc15ca3b47311e9ef
treefd55afce903005a08fbee420e7feb14d707e2be4
parent0563833065b8afa1980a077af06fbf275a8afc25
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