[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YqHINBztFFf+Flqm@FVFYT0MHHV2J.usts.net>
Date: Thu, 9 Jun 2022 18:15:16 +0800
From: Muchun Song <songmuchun@...edance.com>
To: Michal Hocko <mhocko@...e.com>
Cc: mcgrof@...nel.org, keescook@...omium.org, yzaikin@...gle.com,
akpm@...ux-foundation.org, vbabka@...e.cz,
mgorman@...hsingularity.net, peterz@...radead.org,
dhowells@...hat.com, willy@...radead.org, Liam.Howlett@...cle.com,
kemi.wang@...el.com, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
stable@...r.kernel.org
Subject: Re: [PATCH] mm: sysctl: fix missing numa_stat when
!CONFIG_HUGETLB_PAGE
On Thu, Jun 09, 2022 at 10:45:56AM +0200, Michal Hocko wrote:
> On Thu 09-06-22 12:03:42, Muchun Song wrote:
> > "numa_stat" should not be included in the scope of CONFIG_HUGETLB_PAGE,
> > if CONFIG_HUGETLB_PAGE is not configured even if CONFIG_NUMA is configured,
> > "numa_stat" is missed form /proc. Remove it out of CONFIG_HUGETLB_PAGE
> > and move numa_stat sysctl handling to mm/vmstat.c.
> >
> > Fixes: 4518085e127d ("mm, sysctl: make NUMA stats configurable")
> > Signed-off-by: Muchun Song <songmuchun@...edance.com>
> > Cc: <stable@...r.kernel.org>
>
> It really looks like numa_stat is misplaced but I am wondering why the
> fix cannot be as simple as
>
Your changes LGTM. I think I have overdone it. I really should seprate
this into two separate patches, one is bug fix (just like your changes),
another is simplify the code further. I'll rework this patch.
Thanks.
Powered by blists - more mailing lists