[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200720084325.fb6apppq5kvnw5eo@box>
Date: Mon, 20 Jul 2020 11:43:25 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: akpm@...ux-foundation.org, mgorman@...hsingularity.net,
tj@...nel.org, hughd@...gle.com, khlebnikov@...dex-team.ru,
daniel.m.jordan@...cle.com, yang.shi@...ux.alibaba.com,
willy@...radead.org, hannes@...xchg.org, lkp@...el.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
cgroups@...r.kernel.org, shakeelb@...gle.com,
iamjoonsoo.kim@....com, richard.weiyang@...il.com
Subject: Re: [PATCH v16 07/22] mm/thp: remove code path which never got into
On Sat, Jul 11, 2020 at 08:58:41AM +0800, Alex Shi wrote:
> split_huge_page() will never call on a page which isn't on lru list, so
> this code never got a chance to run, and should not be run, to add tail
> pages on a lru list which head page isn't there.
>
> Although the bug was never triggered, it'better be removed for code
> correctness.
>
> BTW, it looks better to have BUG() or soem warning set in the wrong
s/soem/some/
> path, but the path will be changed in incomming new page isolation
> func. So just save it here.
Yeah, WARN() would be great. Otherwise I'm okay with the patch
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
--
Kirill A. Shutemov
Powered by blists - more mailing lists