Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1218443pxb; Tue, 1 Feb 2022 22:52:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuqZxWf1IBJq99xqTkFqlD9pg2cgr8CwvSefOw3KAq9uFjbto81i9cgcAPyV9CNLQO4nyw X-Received: by 2002:a17:90b:4c91:: with SMTP id my17mr6622122pjb.121.1643784776706; Tue, 01 Feb 2022 22:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643784776; cv=none; d=google.com; s=arc-20160816; b=F3+hV1jm3nYqk8wDnrLcs+XRD5ENbtxlMcxG3KL55wZ+ZYwAAy7Pwu/G5YcjlAnALV WSp0beeDFmK8VEKyQcQ7z/FnIvxgIyVNQR57y1r2Sbw1rCUU/kcHpxgWZBjLyge6bthe vyeqdvqfwiA3e4A2kjKtrpDVW0+nOoDHYmsFjC3v3kYNb3lrf/Rf2UTjzZjk10WItxZV 49jF4KbgbSCWbmbAJVFq1gi2D7fXWwuKfCMcq2PsP/QqJTZkFF7tdPDPvp+2D03wXGmZ rlD0pkTlRgtiSXUlRWHFsq8FY/w0R4JiHFXjIUFj5AJ9/4marxNJckMbDfs3bpAK/Fbw Hl5Q== 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=aXtpcbJyDyk4mWH2FPATZeadgV4+yzsbRgqmF24oHa4=; b=0cNCWA6zW2bGSjow+ijf6dUUSL52q4CVbYhLXlyAdSVaQfNj89Adq5bI9ULAzaaJES VRRw/Em/FYWloErKfhxfM9McgFqC7GeC/viBaCCXY5foNA4vSMRPpFIKiqD3jeJkOccU nZ9HgU2meTHj56lkraDAz0KpiNQX5iHw3NMFbJFx6ctDp3uQYOVM7JLAbMFGWcPiuYDh KjovrmtV8t1pRK7iwGw+VsyjZtPaf/6gUUsmFPL8QRCz2M9ipyOhyDo/c8lp80ictsh1 aT48D/wKYvGyIrvQ/pNgQ9AHq1xFudLlfz5Qn36RypdstgeRawS7wjXn4WOY6FWq7TmK ZBdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OMiyGHQY; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3si4021232pjz.39.2022.02.01.22.52.45; Tue, 01 Feb 2022 22:52:56 -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.com header.s=susede1 header.b=OMiyGHQY; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236197AbiBAJvl (ORCPT + 99 others); Tue, 1 Feb 2022 04:51:41 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:37352 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234561AbiBAJvk (ORCPT ); Tue, 1 Feb 2022 04:51:40 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A31A81F383; Tue, 1 Feb 2022 09:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643709099; 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=aXtpcbJyDyk4mWH2FPATZeadgV4+yzsbRgqmF24oHa4=; b=OMiyGHQYaQUqTDF5tmaaHhkhcGdEldbHEITKVnuK6dPYV56pnh7Z0gWgx9TqGo+dF+QMXv +PjZStCvY+miMlj1c1TlikXtuSEX6bnY2jPxKUPNVBwsDEJPs29RippT1erCf8UfGh/Dk5 Qd9epi9v5DzYcvVB/bmawc/0Q3/2F5Q= 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 66F41A3B85; Tue, 1 Feb 2022 09:51:39 +0000 (UTC) Date: Tue, 1 Feb 2022 10:51:39 +0100 From: Michal Hocko To: Wei Yang Cc: Andrew Morton , linux-mm@kvack.org, LKML , David Hildenbrand , Alexey Makhalov , Dennis Zhou , Eric Dumazet , Oscar Salvador , Tejun Heo , Christoph Lameter , Nico Pache , Rafael Aquini Subject: Re: [PATCH 6/6] memcg: do not tweak node in alloc_mem_cgroup_per_node_info Message-ID: References: <20220127085305.20890-1-mhocko@kernel.org> <20220127085305.20890-7-mhocko@kernel.org> <20220201024544.p2iqj2mz7bgq4pf3@master> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220201024544.p2iqj2mz7bgq4pf3@master> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 01-02-22 02:45:44, Wei Yang wrote: > On Thu, Jan 27, 2022 at 09:53:05AM +0100, Michal Hocko wrote: > >From: Wei Yang > > > >alloc_mem_cgroup_per_node_info is allocated for each possible node and > >this used to be a problem because not !node_online nodes didn't have > ^^^ a typo here? > > !node_online nodes is enough? Yes. Fixed up. Thx! > >appropriate data structure allocated. This has changed by "mm: handle > >uninitialized numa nodes gracefully" so we can drop the special casing > >here. > > > >Signed-off-by: Wei Yang > >Signed-off-by: Michal Hocko > > -- > Wei Yang > Help you, Help me -- Michal Hocko SUSE Labs