Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3673031pxb; Mon, 21 Feb 2022 03:22:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJws1yL/oTUQErttr9HFRcA2OpPsxsmX+DrcEkLbhyWiQ08YM6Qd0/SvRT28H+gO1xOoQNRh X-Received: by 2002:a05:6402:1d8d:b0:408:4a31:9790 with SMTP id dk13-20020a0564021d8d00b004084a319790mr21059208edb.92.1645442522251; Mon, 21 Feb 2022 03:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645442522; cv=none; d=google.com; s=arc-20160816; b=IGkDI5CvcpX7cvmA7egrrp8OEnZX05rRFLZdqf0mJSdlXgA7d1cUJRKCHffdUEI3x8 tHhGtRZT1ESGhl+LMTYqCXHHmruJ+OYYmUUCY2ZN0FP3aZQasgE1Hr09SFVhDYTRwnjd KpdmpPJHe9GuV9inXXUm8vgNJzp88kNWmKz2Rzg0YnYbr3gm7X+7Y/acSwW66gFUaFZU o0M9k9wpYYOPEbuwzuiR7apiEooDrwNLSqMDpL5VhB+DbqEdHXzRGO2HPcuLWF3eleSP YARTafq5CDihEkgZz6PaQdBTixNSTzpTWVGGsMcmnY67tmK0zI5nUvIEVUiWBEj2d6kp nbxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=pk1xOipV5voJ7yLZv8MbUm0kEPSkqLDIOfh31PmClxA=; b=t7PoLYFS1jHWMEAvlKipPK7vqbrNVacctcaxYyLcyRP+11ZOCwwVbWoUF/hQw+Y9jS ceBGJKOm5o/GBHJt3DZLVPt0Eolfj+btIk6uVmDt7FouEPnP6C/9DcIMYYPA0KR54ZAs rWYSOs7HnST2gHzWp3s2UNYHNxotBh44S5gQcNomCvhTXKEtNRQ56QVjMuu1Tu7PWrjI NvjpFSFMKa2jnwsSj9Qh/8m23fHVT19bQZvEx4QdKaYyoVCZRSxGhS+mcomiIkesguSo /C3IaOpXdYaijT6w0G5J04e9fm4prw1CrZMag5oKkrgbB5L+XYhVp7q3vWBj6mUov2SA +WWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=k8BT4upj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+Bowmqi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17si12454398edc.160.2022.02.21.03.21.39; Mon, 21 Feb 2022 03:22:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=k8BT4upj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+Bowmqi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354618AbiBUK00 (ORCPT + 99 others); Mon, 21 Feb 2022 05:26:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355050AbiBUK0E (ORCPT ); Mon, 21 Feb 2022 05:26:04 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B593AE0 for ; Mon, 21 Feb 2022 01:47:47 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 722E82112A; Mon, 21 Feb 2022 09:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1645436866; 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=pk1xOipV5voJ7yLZv8MbUm0kEPSkqLDIOfh31PmClxA=; b=k8BT4upj2bStO1OCtFiwY1jBOjsjwsSnsET2IW0bw1Lu6nY7Tn/NWbtD88JN+WkYE4rAQU pjlMNjSsWtgkwwCPyPHHWVE8ChDhmyJQU2XXXMCr1qqYZDmruidPrGItZzcxyJoqbtCIzF eF7mGIDoocBo9Cmx6N3+lnJRn03qIBo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1645436866; 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=pk1xOipV5voJ7yLZv8MbUm0kEPSkqLDIOfh31PmClxA=; b=+Bowmqi+Vl0JzpdPI67vAqnY33YviVxSOCDS0L5dWiETe8ODC/QGFm5qpXEECRbHHzFBVR FSTucjG4TKupd+Bg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BBC3E13A7C; Mon, 21 Feb 2022 09:47:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id puNfKsFfE2IrDwAAMHmgww (envelope-from ); Mon, 21 Feb 2022 09:47:45 +0000 Date: Mon, 21 Feb 2022 10:47:44 +0100 From: Oscar Salvador To: Michal Hocko Cc: Andrew Morton , David Hildenbrand , Rafael Aquini , Dave Hansen , Wei Yang , Dennis Zhou , Alexey Makhalov , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] arch/x86/mm/numa: Do not initialize nodes twice Message-ID: References: <20220218224302.5282-1-osalvador@suse.de> <20220218224302.5282-2-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 21, 2022 at 10:20:02AM +0100, Michal Hocko wrote: > On Fri 18-02-22 23:43:02, Oscar Salvador wrote: > > Why setting the node online saves us then? Well, simply because > > __try_online_node() backs off when the node is online, meaning > > we do not end up calling register_one_node() in the first place. > > This is really a mess and a house built on sand. Thanks for looking into > it and hopefully this can get cleaned up to a saner state. Yes, I am willing to have a deep look into that and see how we can improve the situation. > This sha1 is from linux-next very likely so it won't be persistent. > Please drop it. Yes, it is. I guess it is fine to not have a "Fixes" tag here, so I will remove it then. > I would stick a TODO here. > /* > * Exclude this node from > * bringup_nonboot_cpus > * cpu_up > * __try_online_node > * register_one_node > * because node_subsys is not initialized yet > * TODO remove dependency on node_online() > */ Sure, will do. Thanks! -- Oscar Salvador SUSE Labs