From: Sam Ravnborg <sam@ravnborg.org>
To: Kautuk Consul <consul.kautuk@gmail.com>
Cc: davem@davemloft.net,
Paul Gortmaker <paul.gortmaker@windriver.com>,
Ingo Molnar <mingo@elte.hu>, Joe Perches <joe@perches.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 19/20 v3] sparc/mm/fault_32.c: Port OOM changes to do_sparc_fault
Date: Mon, 26 Mar 2012 18:36:44 +0200 [thread overview]
Message-ID: <20120326163644.GA23176@merkur.ravnborg.org> (raw)
In-Reply-To: <1332775946-2162-1-git-send-email-consul.kautuk@gmail.com>
On Mon, Mar 26, 2012 at 11:32:26AM -0400, Kautuk Consul wrote:
> 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 32-bit sparc.
>
> Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
> ---
> arch/sparc/mm/fault_32.c | 37 ++++++++++++++++++++++++++++++-------
> 1 files changed, 30 insertions(+), 7 deletions(-)
>
> diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c
> index 8023fd7..6da1818 100644
> --- a/arch/sparc/mm/fault_32.c
> +++ b/arch/sparc/mm/fault_32.c
> @@ -226,6 +226,8 @@ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write,
> unsigned long g2;
> int from_user = !(regs->psr & PSR_PS);
> int fault, code;
> + unsigned int flags = (FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE |
> + (write ? FAULT_FLAG_WRITE : 0));
Hi Kautuk.
The indention still look like shit.
It looks like this (tabs converted to spaces):
unsigned int flags = (FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE |
(write ? FAULT_FLAG_WRITE : 0));
Sam
next prev parent reply other threads:[~2012-03-26 16:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 15:32 Kautuk Consul
2012-03-26 16:16 ` Joe Perches
2012-03-26 16:20 ` Kautuk Consul
2012-03-26 16:32 ` Joe Perches
2012-03-26 16:55 ` Kautuk Consul
2012-03-26 17:03 ` Joe Perches
2012-03-26 17:05 ` Kautuk Consul
2012-03-26 16:36 ` Sam Ravnborg [this message]
2012-03-26 20:09 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120326163644.GA23176@merkur.ravnborg.org \
--to=sam@ravnborg.org \
--cc=a.p.zijlstra@chello.nl \
--cc=consul.kautuk@gmail.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paul.gortmaker@windriver.com \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®