Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2595859pxb; Mon, 17 Jan 2022 01:42:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPqsU0cjI1L8KUcEOEWw55k0R29qhGWupZg2hP8qDcGHDKOtpsiuQUoD0TtHDSdR2ajanx X-Received: by 2002:a17:90b:4391:: with SMTP id in17mr30175336pjb.176.1642412579810; Mon, 17 Jan 2022 01:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642412579; cv=none; d=google.com; s=arc-20160816; b=NMPONJeLKbPE9016GUKKr0JXBWsesX+RSxDK1Zphtvyp4R9cdha0Z2WimLb1pX/gVo DHkpYeAvFmwUWCo/XKjWu8YkjAvMw9gis0o4P5QwkINNAL5dI9LRtwejsv4PR+uNcES1 e0YdqBJJyXpkz6mqjICa3wmyjvCY4USw20sy/QKpRGMO1vbDMQJU/9LcouY7RzmUjGF8 cVj5+3M63fwrGZd2GoPvrV4kCjKl8pQ54hu/6gypCCkkDF9GcI4E+mMT8VhxcrRg7yuo dQbSI+emmWXLUiWrOsMXNbwlLZP9fnEEqqVdA1mSjDtNvdMC1Prn2tg/ojZ5LUfh4XrQ r0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hU+OS4Mtwv3I0vy+iNW/4UuAtkSDs3qfMaH9agtczxw=; b=RxLUmJReRCPjKxZY3SBQEm8yDQ3BPhCaUVopIM8GQKILgiVVOURPggcBeSUj1TGrYR NSPYA/+5Gpy5v7SyWHf207kPNPhVSCPIXs6MXB9PW8oEIPOZTzHUq2AACzUE4U0myn2j X1s7lHLTN7ulFXZGvwc/GK2FniL2vXmPprphQUInRlZfbSt/Fd0jhTsz8nOsga8QyiOq 1P80aUDPMcZ2xm3EAiheAum871PpfEy8nhb0c0rRbKjhydAcwW85cLwiWs+yvGbfinOY FtFxEoAPsxh+9kQUsF1mIEG6mNVBki25AoWTC8w/FS5NxQ+tIF3nIjO11/ehS+hapTiO iciQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=IXBWqMIv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v70si7980847pgd.562.2022.01.17.01.42.48; Mon, 17 Jan 2022 01:42:59 -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=@google.com header.s=20210112 header.b=IXBWqMIv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236068AbiAPTXv (ORCPT + 99 others); Sun, 16 Jan 2022 14:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233621AbiAPTXt (ORCPT ); Sun, 16 Jan 2022 14:23:49 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59491C06161C for ; Sun, 16 Jan 2022 11:23:49 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id e3so46883828lfc.9 for ; Sun, 16 Jan 2022 11:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hU+OS4Mtwv3I0vy+iNW/4UuAtkSDs3qfMaH9agtczxw=; b=IXBWqMIvZmgkCjiwt9Q3j+mjCGE+6J+S4UDiBSUUpGUCfcno5XNU/zEfNYKufj9pbo mN46XqggL2AKWpLF0dagxWhuVQJhVngCZkW9t7ZU/R9pPe5cSQNatJ6t6mewMX7oANMP o5i4BneUdKCm/W9x7ztGVl2/TpDJFubZ62AkNI2JLiQKEwH0S0m+W99r1bilWzu101ML bqPIDTz+r6IkzCdhBBmz7iKT71B32Z+USN41d9Bb/QkL4dHC6bALBYyopRq3S85iZJ+w w3njQ/ET4IoYJunHTC9QAZ6JfphnkZkpJgO/tY4Gn3+B+1gN3CczulAwseNhpKLxexfF R3bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hU+OS4Mtwv3I0vy+iNW/4UuAtkSDs3qfMaH9agtczxw=; b=xpMutIKG/WxvakNQcwZrdemVQxheUHy6w6I/n1O3htJph2pPMbdCm3cGulRZ6k8RjU crP2VO2TFnbLDJ43co0Tpe0heVpywhvhu7/Zn+WoUGNN1YwjTqcTajWht4NO8KC0ce1T SsXhpA0K7FVsoZgUWoviR5c/szmnRdoDIIOb3tdw05cZ3Grq+KDZzrxKJxDxvZb07Io7 1jvol7Seis2GTMLssxf7qlARPdPDM+4VdfSq+n6XpTswccTu5IUzu+z23r8bHfLKMC6X u1hA0fcxpqU9mtmi/H347PP0iTdH2ZJwb2SyB2Ay9aPuXIEdQggXUhCeZ4f0FeeGE1Tu p4Vg== X-Gm-Message-State: AOAM532UmnAZjj3pA/dmnBPsYNfAntpKQ/MJKV8IPb6VkFkeYMgT9Tc4 20dOwTVym/CMcqwwRPYB1PDHsvsZYOTj/QQK088HAg== X-Received: by 2002:a2e:3804:: with SMTP id f4mr12569369lja.35.1642361027245; Sun, 16 Jan 2022 11:23:47 -0800 (PST) MIME-Version: 1.0 References: <20220111010302.8864-1-richard.weiyang@gmail.com> <20220112004634.dc5suwei4ymyxaxg@master> In-Reply-To: From: Shakeel Butt Date: Sun, 16 Jan 2022 11:23:36 -0800 Message-ID: Subject: Re: [PATCH 1/4] mm/memcg: use NUMA_NO_NODE to indicate allocation from unspecified node To: Michal Hocko Cc: Wei Yang , Johannes Weiner , Vladimir Davydov , Andrew Morton , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Muchun Song , Yang Shi , Suren Baghdasaryan , LKML , Cgroups , Linux MM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 12, 2022 at 12:56 AM Michal Hocko wrote: > > On Wed 12-01-22 00:46:34, Wei Yang wrote: > > On Tue, Jan 11, 2022 at 09:40:20AM +0100, Michal Hocko wrote: > > >On Tue 11-01-22 01:02:59, Wei Yang wrote: > > >> Instead of use "-1", let's use NUMA_NO_NODE for consistency. > > >> > > >> Signed-off-by: Wei Yang > > > > > >I am not really sure this is worth it. After the merge window I plan to > > >post http://lkml.kernel.org/r/20211214100732.26335-1-mhocko@kernel.org. > > > > Give me some time to understand it :-) > > Just for the record, here is what I have put on top of that series: > --- > From b7195eba02fe6308a6927450f4630057c05e808e Mon Sep 17 00:00:00 2001 > From: Wei Yang > Date: Tue, 11 Jan 2022 09:45:25 +0100 > Subject: [PATCH] memcg: do not tweak node in alloc_mem_cgroup_per_node_info > > 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 > 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 Reviewed-by: Shakeel Butt