From patchwork Thu Jul 19 13:27:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 10534423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B76B600F4 for ; Thu, 19 Jul 2018 13:28:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05A22298CC for ; Thu, 19 Jul 2018 13:28:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDB87298DD; Thu, 19 Jul 2018 13:28:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9073D298CC for ; Thu, 19 Jul 2018 13:28:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE5FD6B026E; Thu, 19 Jul 2018 09:27:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BBB1B6B026F; Thu, 19 Jul 2018 09:27:50 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8A996B0270; Thu, 19 Jul 2018 09:27:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by kanga.kvack.org (Postfix) with ESMTP id 3ECB06B026E for ; Thu, 19 Jul 2018 09:27:50 -0400 (EDT) Received: by mail-wr1-f70.google.com with SMTP id z13-v6so3725255wrq.3 for ; Thu, 19 Jul 2018 06:27:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=iR6ap2+iUy62zVMy6aBo5ViVXszWlh4SxTnrrtnI6UU=; b=btH1zoH6TwetrwX1Qv2eXGvrSgk9Jq2lMKZR45//Mil5lm39OnXVPayqw+aktEB/CW rHv/3sXUQGjaBC9avAKLi1OEgwG9CCvgz1HTjDW0YyHLVHr1nrAJlcy/q44ZHqdDgTdv C/W8Q0CRC+uRq5q+csPQvalFHzx8QVrgs+DKRgxcrQYmjd4wAbP3tavs2LgDvxqF3ZXY iW+xLV0b5f52nE/iZNk4L53jtKH/hF5tv1CtFkKQxMQADEkRv2RjlqHVOBUxYPiesx6a ie9bhw2jBy0Mgloim78u7oAGobaev1R1p0VpJWRatjxvFjjvLwbC/5oIIydmsKxbMjvy nctQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Gm-Message-State: AOUpUlGBy8850TGyYv0V92Dyp1hKaS+aVu6vcFOA0tpar1GRpPqpYU0g Dt+g5zCmsR2NegmjBNQdj1MI05hNRzheVa4RIUGIiR4AZqd6UBjNQ05H7rr/8U7q7MYK69z4JT3 U8qWGT7RSSfoN+m7i8JSSUhZepGjhZK04SEsd74MfsMf7t1BKEviQF4V7/PwR8zyJEl9yWrySN/ oRoHZsF04m7hde4raH0EgEOkknKFRvV0kHjckPzMpLGLDf1UWnvWujg/aW6Yc15OVXWkdLWJrrg lX0rigIFv0XkgzKGePfqxUqDXtdffrsQzIm/tBpRnSRoSLYht+M1HEH9xj0jeL+ArQ9VfI/XxUl yC7aCWGwOPPIENR4D2qhJeNQoktYt4wAyxLV8fhnZ+bR/p98G3xbTBJuPVl9iwlfK40gUEUpPw= = X-Received: by 2002:a1c:cc16:: with SMTP id h22-v6mr4446047wmb.73.1532006869843; Thu, 19 Jul 2018 06:27:49 -0700 (PDT) X-Received: by 2002:a1c:cc16:: with SMTP id h22-v6mr4446018wmb.73.1532006869075; Thu, 19 Jul 2018 06:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532006869; cv=none; d=google.com; s=arc-20160816; b=DnRDlshO4+FrmDN8DaoY6EXRKXgdQfqyG/JRYLf+vQSHszG1Lxb6+8vvPC6/fjxrqt Hro43k138mGz3gErDDmxmFUAtNdmbwfq+dVTsTr/mWhPsfIjav5eXJMKH/BusuBK//rJ I706PzwifKQxc16CZUoGHnrxD4xPxxX1mJ/2ggHz6WGVOj83+jLfnXkXDWBoICT8FdF3 DtAeqWxy3sqi9yvPVlGCWx1wCIV3VJoBjvz2lT6SO/9SMVa5PKsEVj5DCtAMnIzRp8e5 zbT5YUFIphh3pAHRS971waajGEIBdcEhX4asv6NuaScthqq2rlQRxoP5Uilwmix0nq+E cCMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=iR6ap2+iUy62zVMy6aBo5ViVXszWlh4SxTnrrtnI6UU=; b=yK39+nQ53A+x6gVNoJkJW4ZPn85Po6Vj2uwE56G0rGPV5Lq99pZkrBkovD0AiO3TwS TAs08DL0i7hxcuqE4a2WZnUZiqh1vQR+Wgp5AoFjR7DlNu0W7TgG85AlD6+etfkOAgMg 5VHFRXznsDTQ+sAJJWMRVw23d29uuNza1WmWWlYIz/dCPVTN6Wi4xhJOV8LzfMJxHvmY XcLzHzgrbYry5c6tWbjqYpGqYNsqygpAvoVPG8hoyTq+Kfhs5x6UFnUGyAiH8EYFITlv fJB06Z4BG3320Bb6ipRJfl09oPqwUjRbdYlQfIfgp7PpYOo6HZ21IYfkPjwrsUHtd4/y NvWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 132-v6sor1359887wmd.20.2018.07.19.06.27.48 for (Google Transport Security); Thu, 19 Jul 2018 06:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Google-Smtp-Source: AAOMgpftYRfy5AcQmz/Xk79SbS1/qmSyf+8EbwNQ/C1z3SwS12yErvGTDFwyambro5ndGrGS1BwkMg== 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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); }