From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D170C433F5 for ; Thu, 3 Feb 2022 09:19:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C28A28D0136; Thu, 3 Feb 2022 04:19:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BB1888D0124; Thu, 3 Feb 2022 04:19:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A52868D0136; Thu, 3 Feb 2022 04:19:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 91A2D8D0124 for ; Thu, 3 Feb 2022 04:19:51 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4D226E6E for ; Thu, 3 Feb 2022 09:19:51 +0000 (UTC) X-FDA: 79100921382.02.BEEEEE7 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf02.hostedemail.com (Postfix) with ESMTP id CD22480006 for ; Thu, 3 Feb 2022 09:19:50 +0000 (UTC) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 92CF81F3A5; Thu, 3 Feb 2022 09:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643879989; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mMHRl+3oS7jcJj4KDFQJNIuprJqV/MWu3fMSTCqn8qo=; b=ZcVqrc/4khKPD8ZVgO9u5DCNFaUy96KEkOVyjAfro5Ypms3GQLNEbaLeekPTaK3/107gIr 2pzmNS0Z0mEs9WK2b97yjWsWFPfZHoKba635V0rtA0NALGwehUGxK6s1U8UmUcggefLFM0 8sugCnsz/sp1bjSo6x/aOzaTqKptK8I= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4426CA3B8C; Thu, 3 Feb 2022 09:19:49 +0000 (UTC) Date: Thu, 3 Feb 2022 10:19:48 +0100 From: Michal Hocko To: David Hildenbrand , Mike Rapoport , Andrew Morton Cc: Wei Yang , linux-mm@kvack.org, LKML , Alexey Makhalov , Dennis Zhou , Eric Dumazet , Oscar Salvador , Tejun Heo , Christoph Lameter , Nico Pache , Rafael Aquini Subject: Re: [PATCH 2/6] mm: handle uninitialized numa nodes gracefully Message-ID: References: <20220127085305.20890-3-mhocko@kernel.org> <20220201024119.2ailcw4rp5thambz@master> <20220203002116.akpk5um5nkpeflve@master> <15ad305f-a147-4a9c-35e5-bb0a868499ad@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15ad305f-a147-4a9c-35e5-bb0a868499ad@redhat.com> X-Rspam-User: nil X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: CD22480006 X-Stat-Signature: udo16m5kwf8hbeu8opojk7d84pjzyhht Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=suse.com header.s=susede1 header.b="ZcVqrc/4"; spf=pass (imf02.hostedemail.com: domain of mhocko@suse.com designates 195.135.220.29 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com X-HE-Tag: 1643879990-758247 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: So we will go with the following. /* * We do not want to confuse userspace by sysfs files/directories for node * without any memory attached to it, so this node is not marked as * N_MEMORY and not marked online so that no sysfs hierarchy will be * created via register_one_node for this node. The pgdat will get fully * initialized by hotadd_init_pgdat() when memory is hotpluged into this * node */ OK? -- Michal Hocko SUSE Labs