Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1696612imm; Thu, 19 Jul 2018 06:28:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeloBfd11SZ3tifuRt8K6WAOfCVybDr5rK1I/6FOJFPxVbvfo7IuSeCpSx0oBURIt+SgYjd X-Received: by 2002:a63:cc04:: with SMTP id x4-v6mr9910570pgf.33.1532006923966; Thu, 19 Jul 2018 06:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532006923; cv=none; d=google.com; s=arc-20160816; b=PoRA+dVfAAnOFbS060wd0iWdAoSXCNLS8V+GgSnw6KE2gsDfoMQotlhAvIwZPubTAx IYMSpvT8gL8RQs6e92JSlxZ97DZ7yCw5nHI1XWp0JLmyOY6nDHIfOdl/4Lm0wTARMwZm o3U+wXYZ43TbrZhnmEHRZ3XsKvvXoY3Jy28inb920+RevvwJimUhufDGGVcT8+Kiq6lc OFoaMgjI2MHYvKDqKCLl4sxmWqiRGOGzDn4WkEKdEmeF2+lQm7kfYrNnEVPAtjz1xRzJ RMXuskmcwBs6ouP3fWF/JwiMWbLeqL6bxLdBQCjYoJhDfypBnsCs+AISKe7721DzuEJ5 rU9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=iR6ap2+iUy62zVMy6aBo5ViVXszWlh4SxTnrrtnI6UU=; b=VWRof0G0gb8cqEqUfC6MyfiMU/lULz3tU3mVl6mk/R2vDB+KoGWa+LtnfKYCD4Gf0o hd0CPycWz1HAqf/Cop+bodGtUcVytL1IHCCkarM3NZlPvs5lqCSOOuTcpO7fVDc5L5n8 ck6dZ7DLxvuAH1AsagBIHYh5W5VkMdkfCcbHE4X8TrBCBGHtul91H2hXJru/QEaVC84a SZz8K5Wc5Fa86RcTuFPSyN0gygUwR0CleGIBa6gNO1onDPtCZc1ohD8E4ms6kWfnMpIf lc6s1DD5l+i9HubVDe8rBnVUmBwZ4TmPzmF25XuZek45/+hGlPSZWx5cd7HMHXu20dKx LGYg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si5382287plp.7.2018.07.19.06.28.28; Thu, 19 Jul 2018 06:28:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731884AbeGSOLC (ORCPT + 99 others); Thu, 19 Jul 2018 10:11:02 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36130 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731836AbeGSOLA (ORCPT ); Thu, 19 Jul 2018 10:11:00 -0400 Received: by mail-wm0-f66.google.com with SMTP id s14-v6so6454040wmc.1 for ; Thu, 19 Jul 2018 06:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iR6ap2+iUy62zVMy6aBo5ViVXszWlh4SxTnrrtnI6UU=; b=c/S1crlWBfwPuFhnZZ6aT5DwSZwChMiz8LmoZtbGNGbVIW8f/5MlkqJx4E2AzVH1v2 yRa0BLmWxcO9ua+59h7sBWbTpuWn3lu02qU9hwnWMytnNKFBLeaZz/VoeRA1D/nojfUq EYGhyZmMUqI2uL1N2f4Xi+2/wqxjJ8+XqCEtCDeVHjSqtTTPpMyOMeiipgKB/cl2kkQz bVcj7Zy10LxCqxhoAmgZeB8KBKcTiPQZP5jLWBvq++p0wRfmzYCKHM19U5GHOSIadTbW WFbHQflgsBqhqcXTChzxvm2axebFvpzJi+ZPGSVuNRT9Rv8qb16rWSAgAV8WgFD2xzvY VEEg== X-Gm-Message-State: AOUpUlGx/E8XRiqt7oRCuMq2HtzW3iIaye2fx806XCddvHpUQvBF5wwi xHip7JQZowkLg+eAUWbVp84= X-Received: by 2002:a1c:2dc8:: with SMTP id t191-v6mr4454990wmt.94.1532006868813; Thu, 19 Jul 2018 06:27:48 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id j6-v6sm9373056wrs.91.2018.07.19.06.27.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 06:27:47 -0700 (PDT) Received: from d104.suse.de (charybdis-ext.suse.de [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 8D671124176; Thu, 19 Jul 2018 15:27:45 +0200 (CEST) From: osalvador@techadventures.net To: akpm@linux-foundation.org Cc: pasha.tatashin@oracle.com, mhocko@suse.com, vbabka@suse.cz, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: [PATCH v2 5/5] mm/page_alloc: Only call pgdat_set_deferred_range when the system boots Date: Thu, 19 Jul 2018 15:27:40 +0200 Message-Id: <20180719132740.32743-6-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180719132740.32743-1-osalvador@techadventures.net> References: <20180719132740.32743-1-osalvador@techadventures.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oscar Salvador We should only care about deferred initialization when booting. 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