Re: [PATCH v4 2/3] mm/memory-failure: improve large block size folio handling.

From: Wei Yang

Date: Thu Oct 30 2025 - 22:41:37 EST


On Wed, Oct 29, 2025 at 09:40:19PM -0400, Zi Yan wrote:
>Large block size (LBS) folios cannot be split to order-0 folios but
>min_order_for_folio(). Current split fails directly, but that is not
>optimal. Split the folio to min_order_for_folio(), so that, after split,
>only the folio containing the poisoned page becomes unusable instead.
>
>For soft offline, do not split the large folio if its min_order_for_folio()
>is not 0. Since the folio is still accessible from userspace and premature
>split might lead to potential performance loss.
>
>Suggested-by: Jane Chu <jane.chu@xxxxxxxxxx>
>Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
>Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
>Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>

Looks reasonable.

Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>

--
Wei Yang
Help you, Help me