]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tile/mm/fault.c: Port OOM changes to handle_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Sat, 31 Mar 2012 12:05:39 +0000 (08:05 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 10 Apr 2012 16:30:22 +0000 (12:30 -0400)
commit78bfa685c24ffa8a6e3be534c8fa03a13e642658
tree716af5d3b7219297ce890663656b3f10b0f89c66
parent37bbcccbb1111ac278e1b2d787ccbe159df63e39
tile/mm/fault.c: Port OOM changes to handle_page_fault

Commit d065bd810b6deb67d4897a14bfe21f8eb526ba99
(mm: retry page fault when blocking on disk transfer) and
commit 37b23e0525d393d48a7d59f870b3bc061a30ccdb
(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 tile.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
[cmetcalf@tilera.com: initialize "flags" after "write" updated.]
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/fault.c