Re: [PATCH] mm/memory-failure: not select MEMORY_ISOLATION
From: Miaohe Lin
Date: Wed Sep 24 2025 - 21:38:27 EST
On 2025/9/22 22:36, Xie Yuanbin wrote:
> We added that "select MEMORY_ISOLATION" in commit ee6f509c3274 ("mm:
> factor out memory isolate functions").
> However, in commit add05cecef80 ("mm: soft-offline: don't free target
> page in successful page migration") we remove the need for it,
> where we removed the calls to set_migratetype_isolate() etc.
>
> What CONFIG_MEMORY_FAILURE soft-offline support wants is migrate_pages()
> support. But that comes with CONFIG_MIGRATION.
> And isolate_folio_to_list() has nothing to do with CONFIG_MEMORY_ISOLATION.
>
> Therefore, we can remove "select MEMORY_ISOLATION" of MEMORY_FAILURE.
>
> Acked-by: David Hildenbrand <david@xxxxxxxxxx>
> Signed-off-by: Xie Yuanbin <xieyuanbin1@xxxxxxxxxx>
Acked-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Thanks.
.