Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759675Ab3EAWsJ (ORCPT ); Wed, 1 May 2013 18:48:09 -0400 Received: from mail-pb0-f52.google.com ([209.85.160.52]:33531 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757477Ab3EAWsH (ORCPT ); Wed, 1 May 2013 18:48:07 -0400 Date: Wed, 1 May 2013 15:48:05 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Cody P Schafer cc: Andrew Morton , Linux MM , LKML Subject: Re: [PATCH 4/4] memory_hotplug: use pgdat_resize_lock() when updating node_present_pages In-Reply-To: <518199FE.7060908@linux.vnet.ibm.com> Message-ID: References: <1367446635-12856-1-git-send-email-cody@linux.vnet.ibm.com> <1367446635-12856-5-git-send-email-cody@linux.vnet.ibm.com> <518199FE.7060908@linux.vnet.ibm.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 16 On Wed, 1 May 2013, Cody P Schafer wrote: > Guaranteed to be stable means that if I'm a reader and pgdat_resize_lock(), > node_present_pages had better not change at all until I pgdat_resize_unlock(). > > If nothing needs this guarantee, we should change the rules of > pgdat_resize_lock(). I played it safe and went with following the existing > rules. > __offline_pages() breaks your guarantee. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/