Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp297969pxb; Thu, 27 Jan 2022 22:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvQUPpah8rANklVuxZBg5PDZtdiPBYNIomt8+kAiWBfUoi9/65NxQaOr73gTbaq1Wd+S/5 X-Received: by 2002:a05:6402:27c7:: with SMTP id c7mr6795066ede.276.1643351166678; Thu, 27 Jan 2022 22:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643351166; cv=none; d=google.com; s=arc-20160816; b=ofpdIDw1hlopQ1t4lNV4s+lTXgALOwkMCJ8ahqISY0bkzbw0HTsVPMs1nskzNtad3z 56u5lfgOot7UI9NYbUIpgwHCIdXYPL4ABIio/FmrdDU9I8UWhEh7CYjfhS/Pb8rhuJiZ /Z4hoHvImCogmNuD6sL/jSNFCwJEfrLzuT66vrqvd045du9ezusYxg3mHnxQFn+VBBUK Lydpo5srPkRIhdPXSPovpz2qzVKbVFWMe7TJosJVm+4kn3DW2A87bg2bpS6iupptz6NA H1uVfwGDxUzrvYdNRP68cVfC/7ND63hAwfjMLr6jvUpOOqIBQSup1zakUcbqJVk5VRwA S01Q== 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; bh=RcGkJCsMOxm3HKvLbnVc+nUcQAOUfO3nUHEQ2pC0eLY=; b=fkz6U8EZKLTpi9KriSiD9yvtZkBl7+wqomWONOGuVOFOb4EpC7PkAu6L4vufTkU+QE OVlrxRa41EoPstasnsJWCQWD8zArDgTtmj/kxHnHL4DOeUuWH8i8NryPllOq60aKI8tP ruAve/Mv89IOQxe4wUdzPn6odnHuFg4WTr+cv3FE68rdY0T6aJIuhWhz4L5BWdG9JpYA ZTpN6fTHI2a/aNwVBbzjPmXEkPTSY1DEqsnulJ9ZCNEbnrv4tLojpYanZLK0I6rz9Idx 6lbbWfFr7YY9KcmboFa6Qz1lbRVZup1E91pQZ2fye3myLBnHIwGBnowA/XX7BmHJZdVV 9Jgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=sbHrglxb; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si1698438edb.609.2022.01.27.22.25.42; Thu, 27 Jan 2022 22:26:06 -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=@suse.com header.s=susede1 header.b=sbHrglxb; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242619AbiA0Opd (ORCPT + 99 others); Thu, 27 Jan 2022 09:45:33 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:42428 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242545AbiA0Opc (ORCPT ); Thu, 27 Jan 2022 09:45:32 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 280AC1F385; Thu, 27 Jan 2022 14:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643294731; 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=RcGkJCsMOxm3HKvLbnVc+nUcQAOUfO3nUHEQ2pC0eLY=; b=sbHrglxbbiD3Rv19cqAeVKqDVBqm7Kk+OThabUA+8TJBrTrYsAZJ4ZXb+W1dCEbS0ufskg u4ye3envSo3ZHt9dSqcbL7cEgIEN2wsPsN7RfS+Vuv1ofQeK9V+pH6m3v2AtK9rDbPtul2 RmsG5RoumVr/ej4tMWdJsLmPCDHGrbQ= 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 EC2A6A3B85; Thu, 27 Jan 2022 14:45:30 +0000 (UTC) Date: Thu, 27 Jan 2022 15:45:30 +0100 From: Michal Hocko To: Mike Rapoport 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 Subject: Re: [PATCH 4/6] mm, memory_hotplug: reorganize new pgdat initialization Message-ID: References: <20220127085305.20890-1-mhocko@kernel.org> <20220127085305.20890-5-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 27-01-22 15:39:55, Mike Rapoport wrote: > On Thu, Jan 27, 2022 at 09:53:03AM +0100, Michal Hocko wrote: [...] > > + pgdat->nr_zones = 0; > > + pgdat->kswapd_order = 0; > > + pgdat->kswapd_highest_zoneidx = 0; > > + pgdat->node_start_pfn = 0; > > + for_each_online_cpu(cpu) { > > + struct per_cpu_nodestat *p; > > + > > + p = per_cpu_ptr(pgdat->per_cpu_nodestats, cpu); > > + memset(p, 0, sizeof(*p)); > > + } > > It seems to me that most of this is already done by free_area_init_node() > at boot time anyway. Do I miss something? As already replied to David I really didn't want to change the existing logic. -- Michal Hocko SUSE Labs