Message ID | 20180801122348.21588-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 3CA1813B8 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 1 Aug 2018 12:24:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BADE2AB72 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 1 Aug 2018 12:24:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FC182AB8A; Wed, 1 Aug 2018 12:24:04 +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 AB0AE2AB72 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 1 Aug 2018 12:24:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 298D16B0005; Wed, 1 Aug 2018 08:24:00 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 12A6A6B0010; Wed, 1 Aug 2018 08:23:59 -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 CCA7A6B0010; Wed, 1 Aug 2018 08:23:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id 66BBC6B0006 for <linux-mm@kvack.org>; Wed, 1 Aug 2018 08:23:59 -0400 (EDT) Received: by mail-wm0-f69.google.com with SMTP id s18-v6so3756813wmc.5 for <linux-mm@kvack.org>; Wed, 01 Aug 2018 05:23:59 -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=mAoLSSretO233e7nE9tPJv3281GRJk2A72FvTsbUgPA=; b=t7gs/k8jPFnordjZZmz5idEQNcxbv+uDpLUXyZcjoS3mk3I+5P7MVtTR+yLJJKy6hJ SsyhLrKeF4tYmJzCbn/mxxuLdNrTKwoToscS42E+3/WKpvQWFgQcjvW6Be8bY1D+n8+n Vm6HlNMhu88MQOHorupxgq6ebCV19kF8Oz12+OgLghVMX7SoVYJkYfmpMV3aCw7yfKG8 5ArJMG23V6DxNcojjtGepy32Y71jQTw5bkSzly4xg70Sd2cAgU4Hkd4G4h3dkccN4NCL d97mRiMYtkVt1jlPj3PnLufPwE8XzYSvaju/LlIISuBtUG/2ZRHhdJ0KB6hJcOe77TEF njlQ== 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: AOUpUlET4UdHjR5mNqSO4Uz9VLeXvNx+I2gfldTIHfGOvtGzUUHun810 vjMA5MMN24CcxrFoy22RMfWuGbx4d6u7QdqNfbFbYKriNunHZXUQSvsgz942eH4XdLYq2QMFeSg N+Ep3WItfftQrGLKo0zGVa9ti9ME9khg8sVb6fwM9V5Z89LYj+61o7dXPaB3ekYQPtE9GEJwT9L 8dM5ZAqxTm63y+yzNDdUkLcYvhpZvW8dDy5p/Ju/KSx0WoicCXzCL7hnj4r2yZNfQ+H0/4rEfY9 nvUZkarv1bJB70pM/yVhnh530BUTn1cgUsgLzx/RiZqrlgMuXg4vZAVwNsnRCZ3GjIxPE7VtfXE hNe8DcXNapHDcnThXhEjV11mHscVIE/x/xpPtUlNuUt1wL1yNEleKJ1r4+6jgjAZaBPC4NkeyQ= = X-Received: by 2002:a1c:e146:: with SMTP id y67-v6mr2510499wmg.108.1533126238959; Wed, 01 Aug 2018 05:23:58 -0700 (PDT) X-Received: by 2002:a1c:e146:: with SMTP id y67-v6mr2510397wmg.108.1533126236296; Wed, 01 Aug 2018 05:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533126236; cv=none; d=google.com; s=arc-20160816; b=bOILONbU6luDt9EtStnUAURakh1gtPiT71pQjJdpt0+30LXE3rOBtgqO6vtu1+TneO 0IBS9doL4YA8w1ZCNgo1hymwMccUjGIhaywEZl54Pfkrp5NX6eemwlm7ftMfyJYdXzc+ 8GeIwMy6ToavZ+WWB0j1cCglsH8UCbb1apelf9+xSRwwQXvXaxN4W/MHbvpM9silZbMt Ip9vG/bJ40Zzqrarx7z8wfPSyy49QDXuiDSRuhCrYqhUMrrOdjFHNyK4VaXnXijQTKwu VWMlLWwroB5aLXsH06ev4cfWOFcQi9nqN5YLcO7N69FBg1lYZ1v30ecXtTGJHC0wHPuo vxFg== 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=mAoLSSretO233e7nE9tPJv3281GRJk2A72FvTsbUgPA=; b=vBff4uboD1fzIudDBMm/1y3J52FHywfJT6ki+IYlDt6XlOJZu3NedA3E+e84zagrYv w0gBN4JHweFv8Vjk6o5MhDDsnWqm2i7nIyV+g+oOCZGb1jXgaBW0IopmNJ9izmT1Tplz uDA7fiFOi2yQJIBMfRbOvTbuGYgJqJODUc2I7rZboGoqUx2xZwklN2gkrDBA49DKFtaO 9seM4k1eiEwPnR9142wsKd8MjQwBykGXaJZoOgAmM+4LGO9K07vg8sbhJ67a8zCiCgFe du1sli+Pin/D8+NAsah1QbB9qcPW1UIBkGc4iU8ZHiPVgUEJJmMUWloCYyHpPOXVzUma AoCA== 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 137-v6sor1462135wmo.65.2018.08.01.05.23.56 for <linux-mm@kvack.org> (Google Transport Security); Wed, 01 Aug 2018 05:23:56 -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: AAOMgpc5EIihffVMmLtQ0cpbYmVKzqIlB0E0kMDNHRYgkTczQh1kkc0Odd+/iOEbx7A/v5myFe6GHg== X-Received: by 2002:a1c:168a:: with SMTP id 132-v6mr2854484wmw.13.1533126235999; Wed, 01 Aug 2018 05:23:55 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id l5-v6sm3375320wmh.0.2018.08.01.05.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 05:23:55 -0700 (PDT) Received: from d104.suse.de (nat.nue.novell.com [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 462F312453D; Wed, 1 Aug 2018 14:23:54 +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 v6 0/5] Refactor free_area_init_core and add free_area_init_core_hotplug Date: Wed, 1 Aug 2018 14:23:43 +0200 Message-Id: <20180801122348.21588-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: v5 -> v6: - Added patch from Pavel that removes __paginginit - Convert all __meminit(old __paginginit) to __init for functions we do not need after initialization. - Move definition of free_area_init_core_hotplug to include/linux/memory_hotplug.h - Add Acked-by from Michal Hocko 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 the following 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: 4) Remove __paginginit and convert it to __meminit 5) Reconvert all __meminit to __init for functions we do not need after initialization. After this, 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 (2): mm: access zone->node via zone_to_nid() and zone_set_nid() mm: remove __paginginit include/linux/memory_hotplug.h | 1 + include/linux/mm.h | 11 +-- include/linux/mmzone.h | 26 +++++-- mm/internal.h | 12 ---- mm/memory_hotplug.c | 16 ++--- mm/mempolicy.c | 4 +- mm/mm_init.c | 9 +-- mm/page_alloc.c | 151 +++++++++++++++++++++++++++++------------ 8 files changed, 137 insertions(+), 93 deletions(-)