From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id AE8206B004A for ; Mon, 6 Sep 2010 14:35:55 -0400 (EDT) From: "Rafael J. Wysocki" Subject: Re: [PATCH 2/4] swap: prevent reuse during hibernation Date: Mon, 6 Sep 2010 20:34:36 +0200 References: <20100906171504.f06918a1.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20100906171504.f06918a1.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009062034.36437.rjw@sisk.pl> Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: Hugh Dickins , Andrew Morton , KOSAKI Motohiro , Ondrej Zary , Andrea Gelmini , Balbir Singh , Andrea Arcangeli , Nigel Cunningham , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Monday, September 06, 2010, KAMEZAWA Hiroyuki wrote: > On Mon, 6 Sep 2010 01:12:38 -0700 (PDT) > Hugh Dickins wrote: > > > Move the hibernation check from scan_swap_map() into try_to_free_swap(): > > to catch not only the common case when hibernation's allocation itself > > triggers swap reuse, but also the less likely case when concurrent page > > reclaim (shrink_page_list) might happen to try_to_free_swap from a page. > > > > Hibernation already clears __GFP_IO from the gfp_allowed_mask, to stop > > reclaim from going to swap: check that to prevent swap reuse too. > > > > Signed-off-by: Hugh Dickins > > Cc: KAMEZAWA Hiroyuki > > Cc: KOSAKI Motohiro > > Cc: "Rafael J. Wysocki" > > Cc: Ondrej Zary > > Cc: Andrea Gelmini > > Cc: Balbir Singh > > Cc: Andrea Arcangeli > > Cc: Nigel Cunningham > > Cc: stable@kernel.org > > Hmm...seems better. > > Acked-by: KAMEZAWA Hiroyuki Acked-by: Rafael J. Wysocki -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org