From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752519Ab0JTCHh (ORCPT ); Tue, 19 Oct 2010 22:07:37 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:54267 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875Ab0JTCHg (ORCPT ); Tue, 19 Oct 2010 22:07:36 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Andrew Morton Subject: Re: [resend][PATCH 2/2] mm, mem-hotplug: update pcp->stat_threshold when memory hotplug occur Cc: kosaki.motohiro@jp.fujitsu.com, David Rientjes , KAMEZAWA Hiroyuki , Mel Gorman , LKML , linux-mm , Christoph Lameter In-Reply-To: <20101019162940.6918506d.akpm@linux-foundation.org> References: <20101019162940.6918506d.akpm@linux-foundation.org> Message-Id: <20101020110132.1815.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Wed, 20 Oct 2010 11:07:33 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > @@ -5013,6 +5014,8 @@ int __meminit init_per_zone_wmark_min(void) > > > min_free_kbytes = 128; > > > if (min_free_kbytes > 65536) > > > min_free_kbytes = 65536; > > > + > > > + refresh_zone_stat_thresholds(); > > > setup_per_zone_wmarks(); > > > setup_per_zone_lowmem_reserve(); > > > setup_per_zone_inactive_ratio(); > > > > setup_per_zone_wmarks() could change the min and low watermarks for a zone > > when refresh_zone_stat_thresholds() would have used the old value. > > Indeed. > > I could make the obvious fix, but then what I'd have wouldn't be > sufficiently tested. Can we review this?