[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHbLzkq7M5aDOxmgHGkoh95bC6DfZqQgdMSKS_m-REM4WbYEGw@mail.gmail.com>
Date: Wed, 18 Aug 2021 10:04:42 -0700
From: Yang Shi <shy828301@...il.com>
To: David Hildenbrand <david@...hat.com>
Cc: HORIGUCHI NAOYA(堀口 直也)
<naoya.horiguchi@....com>,
Naoya Horiguchi <naoya.horiguchi@...ux.dev>,
"osalvador@...e.de" <osalvador@...e.de>,
"tdmackey@...tter.com" <tdmackey@...tter.com>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"corbet@....net" <corbet@....net>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] mm: hwpoison: don't drop slab caches for offlining
non-LRU page
On Wed, Aug 18, 2021 at 12:55 AM David Hildenbrand <david@...hat.com> wrote:
>
> On 18.08.21 09:53, HORIGUCHI NAOYA(堀口 直也) wrote:
> > On Wed, Aug 18, 2021 at 09:24:01AM +0200, David Hildenbrand wrote:
> > ...
> >>
> >> Might we want to add a TODO in the code? We have a similar one in
> >> mm/page_isolation.c:set_migratetype_isolate() and it's certainly a reminder
> >> that something of value is missing.
> >
> > Yes, that will be helpful. The below's what's in my mind, but if someone
> > has better idea, that's fine.
> >
> > @@ -296,11 +296,9 @@ void shake_page(struct page *p, int access)
> > }
> >
> > /*
> > - * Only call shrink_node_slabs here (which would also shrink
> > - * other caches) if access is not potentially fatal.
> > + * TODO: Could shrink slab caches here if a lightweight range-based
> > + * shrinker will be available.
> > */
> > - if (access)
> > - drop_slab_node(page_to_nid(p));
> > }
> > EXPORT_SYMBOL_GPL(shake_page);
>
> Just what I had in mind, thanks!
Fine to me, will add this in v2.
>
>
> --
> Thanks,
>
> David / dhildenb
>
>
Powered by blists - more mailing lists