cris/mm/fault.c: Port OOM changes to do_page_fault
authorKautuk Consul <consul.kautuk@gmail.com>
Tue, 20 Mar 2012 13:24:05 +0000 (14:24 +0100)
committerJesper Nilsson <jespern@axis.com>
Wed, 4 Apr 2012 15:50:30 +0000 (17:50 +0200)
commit4d5914d628360c607dc426ccb1acaf23909ac546
tree711cce67064eabd0d3347fb90ff80c55d59667ed
parentdfb73a071f0259ba81ceea7b7f312f63dd18c73c
cris/mm/fault.c: Port OOM changes to do_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 CRIS.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/mm/fault.c