All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Hugh Dickins <hughd@google.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Kernel development list <linux-kernel@vger.kernel.org>,
	Ondrej Zary <linux@rainbow-software.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [PATCH] PM / Hibernate: Fix memory corruption related to swap
Date: Thu, 2 Dec 2010 17:02:54 -0800	[thread overview]
Message-ID: <20101202170254.25ec5941.akpm@linux-foundation.org> (raw)
In-Reply-To: <alpine.LSU.2.00.1012021622370.26812@tigran.mtv.corp.google.com>

On Thu, 2 Dec 2010 16:37:21 -0800 (PST)
Hugh Dickins <hughd@google.com> wrote:

> On Thu, 2 Dec 2010, Andrew Morton wrote:
> > On Fri, 3 Dec 2010 00:40:36 +0100
> > "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> > > 
> > > This patch is a fix for a regression and nasty memory corruption, so I'd like
> > > to push it to Linus for 2.6.37 if there are no objections.
> 
> (It will need backport to 2.6.35-stable and 2.6.36-stable:
> IIRC it doesn't quite apply cleanly to those, so we'll need
> to send a separate version.)
> 
> > 
> > It looks OK to me for 2.6.37 but for 2.6.38 please let's make
> > everything here a 100% no-op for CONFIG_PM_SLEEP=n builds. 
> > Specifically the slight overhead in __alloc_pages_nodemask.
> 
> I expect you're right that the CONFIG_PM would better be CONFIG__PM_SLEEP;
> but I think you misunderstand gfp_allowed_mask in __alloc_pages_nodemask:
> it came from slab & slub, to fix some early bootup issues, and predates
> Rafael's recent use of it in suspend and hibernation.
> 
> > 
> > Because given the global nature of saved_gfp_mask and the unlocked way
> > in which it is accessed, this facility won't be at all useful for
> > anything other than suspend.
> 
> ... and bootup.
> 

Oh.  Who writes this crap :(

  parent reply	other threads:[~2010-12-03  1:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 23:40 [PATCH] PM / Hibernate: Fix memory corruption related to swap Rafael J. Wysocki
2010-12-02 23:54 ` Andrew Morton
2010-12-02 23:54 ` Andrew Morton
2010-12-03  0:06   ` Rafael J. Wysocki
2010-12-03  0:06   ` Rafael J. Wysocki
2010-12-03  0:37   ` Hugh Dickins
2010-12-03  0:46     ` Rafael J. Wysocki
2010-12-03  0:46     ` Rafael J. Wysocki
2010-12-03  1:02     ` Andrew Morton
2010-12-03  1:02     ` Andrew Morton [this message]
2010-12-03  0:37   ` Hugh Dickins
2010-12-03  0:15 ` KAMEZAWA Hiroyuki
2010-12-03  0:15 ` KAMEZAWA Hiroyuki
  -- strict thread matches above, loose matches on Subject: below --
2010-12-02 23:40 Rafael J. Wysocki

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=20101202170254.25ec5941.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hughd@google.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux@rainbow-software.org \
    --cc=rjw@sisk.pl \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.