Re: [PATCH 2/3] mm/memory_hotplug: fix potential permanent lru cache disable

From: HORIGUCHI NAOYA(堀口 直也)
Date: Mon Aug 23 2021 - 04:21:18 EST


On Sat, Aug 21, 2021 at 05:42:45PM +0800, Miaohe Lin wrote:
> If offline_pages failed after lru_cache_disable(), it forgot to do
> lru_cache_enable() in error path. So we would have lru cache disabled
> permanently in this case.
>
> Fixes: d479960e44f2 ("mm: disable LRU pagevec during the migration temporarily")
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Reviewed-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>