Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1715399imm; Thu, 19 Jul 2018 06:48:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfSUICTByf7R8frt4NYyXRpw+6dLn5/jxJvZ70SyYZoUCkMpvUkaZisDseFrtJLGJLxDWui X-Received: by 2002:a65:6203:: with SMTP id d3-v6mr10122878pgv.420.1532008080212; Thu, 19 Jul 2018 06:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532008080; cv=none; d=google.com; s=arc-20160816; b=0K8ZT9nLxkZ1B8skpLmVvMMyB4aBXlHtssQGF/J4tXMJk4grwjfZhw5GaebrioNTNH vg61/acPEED5JfQrkA5+CbNDoEfwigmiiM9TnOyy9P0Cd9vitpYhQHIZXEMpN2mSSit9 8H1kwdrZt8L0PVhZp6d5rIso2WJi9Kg9JiArs5nHSzsCddaxwhgS328kfS0SSIuBvXU1 jJvM4oNTQ94nZ6fp2evm6foijndmSyp5lLsKSZajEJd5Wk1s9SMFr9V+3QXovlz+rLFr 2l7QOS5SqWw/rb8K9wcVyIpVdGu0c39spN6+9crDGze916zDgGzXXu32f/1QfqUbiTTF ejMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=H/54cZ1bhuefhW2S2VCMxtbs/KhBgAFauvWjfiYZFfw=; b=YQyrJUfy6v1ZDtO3QCLUJgBXB8ZBzQl9n4So9bsdbx+rC1PuJ/8ZwmYSXnhTvXc9ES NTSR2EYIwj0eElX+cSKjyjd1Rm1SmpR6zDtDSoH5rccWkTZ0HqFOqQu8wGwIppQ6xk0W lGDsVp4zJyMcyPhKcQu9X76uRRJe7GY+/i4cZMDpvg6FEsAi4kAxWxy3y31P9F4CYsit zGMt/iMUGZ7+s2MNNnZcoTcsTg2h2AQFaRPjKKW3i1kJcGdZTb0OElSUTRx9SrEgyox7 ykWLTNogPltovmNunoCC3qkQtpnH0xUnnb5pmTnQPoug1zyQAY1BcnTPgkrtyGlQzOTZ z3nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32-v6si6102197pgl.622.2018.07.19.06.47.45; Thu, 19 Jul 2018 06:48:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731676AbeGSO3l (ORCPT + 99 others); Thu, 19 Jul 2018 10:29:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:57584 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727441AbeGSO3l (ORCPT ); Thu, 19 Jul 2018 10:29:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1C9BFACFA; Thu, 19 Jul 2018 13:46:25 +0000 (UTC) Date: Thu, 19 Jul 2018 15:46:22 +0200 From: Michal Hocko To: osalvador@techadventures.net Cc: akpm@linux-foundation.org, pasha.tatashin@oracle.com, vbabka@suse.cz, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: Re: [PATCH v2 5/5] mm/page_alloc: Only call pgdat_set_deferred_range when the system boots Message-ID: <20180719134622.GE7193@dhcp22.suse.cz> References: <20180719132740.32743-1-osalvador@techadventures.net> <20180719132740.32743-6-osalvador@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719132740.32743-6-osalvador@techadventures.net> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 19-07-18 15:27:40, osalvador@techadventures.net wrote: > From: Oscar Salvador > > We should only care about deferred initialization when booting. Again why is this worth doing? > Signed-off-by: Oscar Salvador > --- > mm/page_alloc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index d77bc2a7ec2c..5911b64a88ab 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -6419,7 +6419,8 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, > zones_size, zholes_size); > > alloc_node_mem_map(pgdat); > - pgdat_set_deferred_range(pgdat); > + if (system_state == SYSTEM_BOOTING) > + pgdat_set_deferred_range(pgdat); > > free_area_init_core(pgdat); > } > -- > 2.13.6 > -- Michal Hocko SUSE Labs