Message ID | 20180730101757.28058-1-osalvador@techadventures.net (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2470C14BC for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 30 Jul 2018 10:18:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A03E29703 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 30 Jul 2018 10:18:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF8D729706; Mon, 30 Jul 2018 10:18:07 +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=ham 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 85BD129703 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 30 Jul 2018 10:18:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1BD3E6B0003; Mon, 30 Jul 2018 06:18:06 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 16D596B0006; Mon, 30 Jul 2018 06:18:06 -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 05CF86B0008; Mon, 30 Jul 2018 06:18:06 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by kanga.kvack.org (Postfix) with ESMTP id A17C06B0003 for <linux-mm@kvack.org>; Mon, 30 Jul 2018 06:18:05 -0400 (EDT) Received: by mail-wr1-f71.google.com with SMTP id f13-v6so9435921wru.5 for <linux-mm@kvack.org>; Mon, 30 Jul 2018 03:18:05 -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; bh=9Wb89sZl48ZLEl0m2kvUGWLXvaF95IbPdf1nJbbYfMA=; b=pfz51y7YnpK1aj0xOqoVd0pqIXQIu/n16SDz2RybrcEJmzf4VJnIBfMDz6ncjwOLTr 4hTgYgXleD/e0ejfC/dXQS1XURDEd8vMCKgpBKv84TGVa7e9jibHNnB0jkN1LOgXDF5k CfbHbjcGPLiRldgvBiPFb+MoJOE/15sM1fGkphA9IoWsOHX13r0K9CnppQakoub9YU/H N9163GZ2NScsA4IANuYl2cEL13yuPBMiciYFkF90hvsn8MgDNn5uWYwWa0CrCaiWiiHD aA/PnmUiu9Eqcbi7CkhN1qLfvcjcsY8kNs78zrOhgm5jZ5qCYNT/1CXVWh+FeqGqBYzN Cjcw== 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: AOUpUlEMLzz3Px9JPhWrxW3dt78bs9QCEMFyPOHUXReaOLSreRSSX3C9 TRWPGPejphgdXmEJV5/N/L+YL4E3byFzCJbi1W/oSWROP+zxztRLKmz4zs8bIkMOCxioeV7qB4n zQYo6kgeHy76LIcw2gWp3C53gJQK0b2ja68FmoeFZf0Dd3fgrN94sOMrK6mmmsaMniZ2AYClQGL f6QgBturvsm31ocJ+h51ea+DH9wlg8lNCBF0pACJdY4rn8TrT5APJa8AEGBFgmdbxmzeBoNdISu KMsF/1uppShTvp2aOvXIVktAEcAsNLfzAPPggHADdeBzX3nrQXi7IkHAUa0+ikcJ5Ns10qEJ3wZ snwLbxwYC+qmCWWdrO7xfm+ZzopXWKOnouRb7neprbD5u0fQzBCFZb3xNrOMrG9IXeJapy8fPw= = X-Received: by 2002:adf:a963:: with SMTP id u90-v6mr18096694wrc.248.1532945885178; Mon, 30 Jul 2018 03:18:05 -0700 (PDT) X-Received: by 2002:adf:a963:: with SMTP id u90-v6mr18096603wrc.248.1532945884181; Mon, 30 Jul 2018 03:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532945884; cv=none; d=google.com; s=arc-20160816; b=Zzu6E479Lzh9tiQrsyqoB+uvJ6mp5agx8gMnyDCt5e79FkCOmNZPyuu3dwJtBorqLB VHd124RrLWOmA8tAsgj9Y6mOjiwinJuYfPNslBfKtnczsT+Mn75jNrJwEJEKz819LQJa mcPchkxixOQoHV0b/zB5iZfOixJzRvq/QY91TJ2qwvzAfPxC5cJBOHa7H7z5K/0vsoMO KHODwIneZ47QAW9Nyu5eXd7Q9PTW13sCZvSiPDWBdmX50HrIW6maCAWUGVUkUQ0Dmgra q/jp0BO25Z6C7GpkA2E9TslRH6rGU3qy8S85j6ZrlZfma1oB6vfRZvu6QgEmH/UeBmi9 6K5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=9Wb89sZl48ZLEl0m2kvUGWLXvaF95IbPdf1nJbbYfMA=; b=V7nNvW3dWeBT8+5UtIPQihy8TpOw4rEIgzGP9LY0Ljdx7+7a7PGDn5XxhuT0xW0aqu OmIgq6WdeAvJmqbapJcqD81hyxoTrcm62nJKeBKXBLl679bp3jBwdBk6IQL928trTEXJ rgKwqclTUgbsLth+Eam4BW7HxCtD0oOFH+Q5dzScngNlDJaxKuiuAxyyQi8a0cic+Xdz +cXyhUi9zk4O1T+gGWI/5Q+AGWkeNSdO+xKqtiQ5DiEqTKVewkHAkEoagMTQyJwQuYpd CqOLEQ3R0O2r+Ack/y7q2FO82XopOkAevpdoWYZx0k2+YCeyDN+e3JRE8peFV76OhSO9 St+A== 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 b16-v6sor4490508wrm.39.2018.07.30.03.18.04 for <linux-mm@kvack.org> (Google Transport Security); Mon, 30 Jul 2018 03:18:04 -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: AAOMgpeIhKmqBFzKh/FNLtFB+Rq+To311NPRK+Bjjog7TBTrEMAC0nIKfbFpZ+Dl2Cq2xf85aqt3iw== X-Received: by 2002:adf:9d1c:: with SMTP id k28-v6mr7228909wre.29.1532945883847; Mon, 30 Jul 2018 03:18:03 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id n7-v6sm7298445wmc.2.2018.07.30.03.18.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 03:18:03 -0700 (PDT) Received: from d104.suse.de (nat.nue.novell.com [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 7716512440E; Mon, 30 Jul 2018 12:18:02 +0200 (CEST) From: osalvador@techadventures.net To: akpm@linux-foundation.org Cc: mhocko@suse.com, vbabka@suse.cz, pasha.tatashin@oracle.com, mgorman@techsingularity.net, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, david@redhat.com, Oscar Salvador <osalvador@suse.de> Subject: [PATCH v5 0/4] Refactor free_area_init_core and add free_area_init_core_hotplug Date: Mon, 30 Jul 2018 12:17:53 +0200 Message-Id: <20180730101757.28058-1-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Refactor free_area_init_core and add free_area_init_core_hotplug
|
expand
|
From: Oscar Salvador <osalvador@suse.de> Changes: v4 -> v5: - Remove __ref from hotadd_new_pgdat and placed it to free_area_init_core_hotplug. (Suggested by Pavel) - Since free_area_init_core_hotplug is now allowed to be in a different section (__ref), remove the __paginginit.) - Stylecode in free_area_init_core_hotplug (Suggested by Pavel) - Replace s/@__paginginit/@__init for free_area_init_node/free_area_init_core as these functions are now only called during early init. - Add Reviewd-by from Pavel v3 -> v4: - Unify patch-5 and patch-4. - Make free_area_init_core __init (Suggested by Michal). - Make zone_init_internals __paginginit (Suggested by Pavel). - Add Reviewed-by/Acked-by: v2 -> v3: - Think better about split free_area_init_core for memhotplug/early init context (Suggested by Michal). This patchset does three things: 1) Clean up/refactor free_area_init_core/free_area_init_node by moving the ifdefery out of the functions. 2) Move the pgdat/zone initialization in free_area_init_core to its own function. 3) Introduce free_area_init_core_hotplug, a small subset of free_area_init_core, which is only called from memhotlug code path. In this way, we have: free_area_init_core: called during early initialization free_area_init_core_hotplug: called whenever a new node is allocated/re-used (memhotplug path) Oscar Salvador (3): mm/page_alloc: Move ifdefery out of free_area_init_core mm/page_alloc: Inline function to handle CONFIG_DEFERRED_STRUCT_PAGE_INIT mm/page_alloc: Introduce free_area_init_core_hotplug Pavel Tatashin (1): mm: access zone->node via zone_to_nid() and zone_set_nid() include/linux/mm.h | 15 ++---- include/linux/mmzone.h | 26 +++++++--- mm/memory_hotplug.c | 16 ++---- mm/mempolicy.c | 4 +- mm/mm_init.c | 9 +--- mm/page_alloc.c | 134 +++++++++++++++++++++++++++++++++++-------------- 6 files changed, 130 insertions(+), 74 deletions(-)