Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1107723pxb; Tue, 1 Feb 2022 18:46:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxn6+RuoxLr2Wkjz3PMypcsQRh++tkMSWkmF3IkXhME3+Rn+mZCgipiEWNK6LJwPbWqyJV/ X-Received: by 2002:a50:baa8:: with SMTP id x37mr6851561ede.450.1643769965760; Tue, 01 Feb 2022 18:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643769965; cv=none; d=google.com; s=arc-20160816; b=ihHqmudsY6xrORJWSV8z3Sv2o2iG7RooShtzqCqXtGMP8SSUMOKPmbGCNqWOLQVcY3 MsweKPFtQFcfmncg/JMAthUQ9to0mnWSacnDFQ0yI/sfRCqwaqpnggoFYHD4MWJP2wRg nNKnCBYczZHuFUzMoG9ka/OxPxsNyrIFSt6NJH1NZcm5qfDWCAFFX/eeAS+VWO2jZ9Qh aH9VwfqLxt++QDq3fD60BsIU1Qn0tbgSw9j0SiRrW21egw/KheRhu5vcvlrATj/SD2hk ksyLgztGcWo8myQUtY8rN330UcrzIgV4ouizGuCBdP4ZNu8rBiFTArWRFfiQNNZ0NHtx J7/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o+aNazM92DpchyM2fptN7BUFRXkWjezucT0stoL0ipM=; b=IQRvOtMSccXfIRVEfvpoRz7MO6xv+4PG9WTRrs4JAgUliqThwRmpXX3sUEq2RLNOvB NCGV3hjP7MvXS0/ni5YsK6MtVmLZJLXxU+7EjNepkl3az6JVtRQmC4FLzqhxWPxjzwZz AQGsKEVCFsMB0qYVqSm2MfGa62F0LXMXgI8qVik9pMhoZjff5SXukLtxGsHNVHUFgjPN 8MwowlTrcXPQHc1+bnAL8/pf7aFxBnIrWtSX2GJPAmVo4wf7Hzi4xUp7UDPhB7Xs7Dtz 8avhLir6MR0YNNx/5D2WQgW+XkLr+5oC+nmlCIzCLiBFP/mU4JxITDDQz6Opu0dxFY3w ScLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Tcd/oRvH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga33si7612438ejc.436.2022.02.01.18.45.40; Tue, 01 Feb 2022 18:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Tcd/oRvH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232623AbiBACl6 (ORCPT + 99 others); Mon, 31 Jan 2022 21:41:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232574AbiBAClz (ORCPT ); Mon, 31 Jan 2022 21:41:55 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE10C061714 for ; Mon, 31 Jan 2022 18:41:55 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id h7so49390376ejf.1 for ; Mon, 31 Jan 2022 18:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=o+aNazM92DpchyM2fptN7BUFRXkWjezucT0stoL0ipM=; b=Tcd/oRvHBzzZewL8wbSRs0n2QUG6q4SMMfSwuxSP4LVbmDVHyh4Ie7anUyNyxxW7Q4 QswsnH0dFPkvXVyyGqDB/235lIqcPs9kXcuu4+dQXs8ywtHH82qMHQaW+MbZDg7hc0Kp PKuyOCEyq7YcN+uHXx2zUU7htCTgU63fYHKkcq1Dz5nj1Tay8FySEwy9Jvb+eVNHeD5r NfoVVWZNi/Qn1KAR1UdvARqBwL499XJ3GtenMyOw0XnYpt+XuYo9g6N+cp4703Cew+6n TisZdLekqzSIPfWawz02ooqsk3ebtk8+FdI2kb/Xcjkj/ILcx5XOWRxwqJpqc7E2gjuW 7aDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=o+aNazM92DpchyM2fptN7BUFRXkWjezucT0stoL0ipM=; b=MGEC8/8QiOUSMIURdzqKG9C/BN6dVpnUQinVuq4Q+Ln/rfa9e4FVA7erLb4RRZb2Yo Z38OU3/3cu53NKQ6K9ztxD4SJxOauHfJJAUoIz/f2EMdI5hPf6IL7rl5aOysqc56VSJk w7xDaduIOYDDx0FavB8dIyDDOy5t2JVUZMhoQV5FAlm6w/pCv/7MFNq2SAyAjnnFZsMe qXnLbexJMgqUPPO8HSSJ6v+izyCY8OyPhL2cMWu14cXTlA+PWsAn/xXE/iSokGgaJN0u K5s3BOoSdGlvdU0J34aKW2DR3MzwbpnDyuTwGIRxZ/f9YZl3U7196anXlckWjIOS+KiT u4Wg== X-Gm-Message-State: AOAM533bCYeqgCP0zElErH/roty/LAibDtnUYHTZbR741eopfHVYp9lx 53S4fI6Wai7dPcE4e3vJf4atXpqkDu4= X-Received: by 2002:a17:907:60cf:: with SMTP id hv15mr18907361ejc.702.1643683313812; Mon, 31 Jan 2022 18:41:53 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a11sm18670116edv.76.2022.01.31.18.41.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Jan 2022 18:41:53 -0800 (PST) Date: Tue, 1 Feb 2022 02:41:52 +0000 From: Wei Yang To: Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, LKML , David Hildenbrand , Alexey Makhalov , Dennis Zhou , Eric Dumazet , Oscar Salvador , Tejun Heo , Christoph Lameter , Nico Pache , Wei Yang , Rafael Aquini , Michal Hocko Subject: Re: [PATCH 3/6] mm, memory_hotplug: drop arch_free_nodedata Message-ID: <20220201024152.uqksmmethxs4q2pe@master> Reply-To: Wei Yang References: <20220127085305.20890-1-mhocko@kernel.org> <20220127085305.20890-4-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127085305.20890-4-mhocko@kernel.org> User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 09:53:02AM +0100, Michal Hocko wrote: >From: Michal Hocko > >Prior to "mm: handle uninitialized numa nodes gracefully" memory hotplug >used to allocate pgdat when memory has been added to a node >(hotadd_init_pgdat) arch_free_nodedata has been only used in the >failure path because once the pgdat is exported (to be visible >by NODA_DATA(nid)) it cannot really be freed because there is no >synchronization available for that. > >pgdat is allocated for each possible nodes now so the memory hotplug >doesn't need to do the ever use arch_free_nodedata so drop it. > >This patch doesn't introduce any functional change. > >Acked-by: Rafael Aquini >Signed-off-by: Michal Hocko Reviewed-by: Wei Yang -- Wei Yang Help you, Help me