Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933009AbdDEJHS (ORCPT ); Wed, 5 Apr 2017 05:07:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59914 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755042AbdDEJHB (ORCPT ); Wed, 5 Apr 2017 05:07:01 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 38B4380498 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=imammedo@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 38B4380498 Date: Wed, 5 Apr 2017 11:06:54 +0200 From: Igor Mammedov To: Michal Hocko Cc: linux-mm@kvack.org, Andrew Morton , Mel Gorman , Vlastimil Babka , Andrea Arcangeli , Reza Arbab , Yasuaki Ishimatsu , Tang Chen , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Vitaly Kuznetsov , LKML Subject: Re: [PATCH v1 1/6] mm: get rid of zone_is_initialized Message-ID: <20170405110654.6ef458ee@nial.brq.redhat.com> In-Reply-To: <20170405081400.GE6035@dhcp22.suse.cz> References: <20170330115454.32154-1-mhocko@kernel.org> <20170330115454.32154-2-mhocko@kernel.org> <20170331073954.GF27098@dhcp22.suse.cz> <20170405081400.GE6035@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 05 Apr 2017 09:07:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1215 Lines: 25 On Wed, 5 Apr 2017 10:14:00 +0200 Michal Hocko wrote: > On Fri 31-03-17 09:39:54, Michal Hocko wrote: > > Fixed screw ups during the initial patch split up as per Hillf > > --- > > From 8be6c5e47de66210e47710c80e72e8abd899017b Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Wed, 29 Mar 2017 15:11:30 +0200 > > Subject: [PATCH] mm: get rid of zone_is_initialized > > > > There shouldn't be any reason to add initialized when we can tell the > > same thing from checking whether there are any pages spanned to the > > zone. Remove zone_is_initialized() and replace it by zone_is_empty > > which can be used for the same set of tests. > > > > This shouldn't have any visible effect > > I've decided to drop this patch. My main motivation was to simplify > the hotplug workflow/ The situation is more hairy than I expected, > though. On one hand all zones should be initialized early during the > hotplug in add_memory_resource but direct users of arch_add_memory will > need this to be called I suspect. Let's just keep the current status quo > and clean up it later. It is not really needed for this series. Would you post v2 with all fixups you've done so far?