mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: Benjamin LaHaise <bcrl@kvack.org>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>,
	Andrew Morton <akpm@osdl.org>,
	Linux Kernel ML <linux-kernel@vger.kernel.org>,
	Larry Woodman <lwoodman@redhat.com>
Subject: Re: [PATCH] Make new setting of panic_on_oom
Date: Fri, 20 Apr 2007 09:16:37 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0704200916250.20232@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20070420124157.GA21709@kvack.org>

On Fri, 20 Apr 2007, Benjamin LaHaise wrote:

> On Fri, Apr 20, 2007 at 08:43:56PM +0900, Yasunori Goto wrote:
> > 
> > The current panic_on_oom may not work if there is a process using 
> > cpusets/mempolicy, because other nodes' memory may still free.
> > But some people want failover by panic ASAP even if they are used.
> > This patch makes new setting for its request.
> > 
> > This is not tested yet. But it would work.
> 
> >  	read_lock(&tasklist_lock);
> >  
> > +	if (sysctl_panic_on_oom == 2)
> > +		panic("out of memory. Compulsory panic_on_oom is selected.\n");
> > +
> 
> Wouldn't it be safer to put the panic before the read_lock()?

I agree. Otherwise the patch seem to be okay.


  reply	other threads:[~2007-04-20 16:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 11:43 Yasunori Goto
2007-04-20 12:41 ` Benjamin LaHaise
2007-04-20 16:16   ` Christoph Lameter [this message]
2007-04-21  4:28     ` Yasunori Goto
2007-04-21 15:27       ` Benjamin LaHaise
2007-04-24  5:14         ` Yasunori Goto

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=Pine.LNX.4.64.0704200916250.20232@schroedinger.engr.sgi.com \
    --to=clameter@sgi.com \
    --cc=akpm@osdl.org \
    --cc=bcrl@kvack.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lwoodman@redhat.com \
    --cc=y-goto@jp.fujitsu.com \
    /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®