Re: [PATCH] mm/swap: skip devices without SWP_PAGE_DISCARD in swap_sync_discard()

From: albin_yang

Date: Thu Dec 03 2026 - 21:28:35 EST


Hi Kairui,

Thanks for the review.

On Fri, 4 Dec 2026 01:15:20 +0800, Kairui Song wrote:
> Maybe should be f9e82f99b377? The per-device lock churn came from
> 9fb749cd1507, but that version walked swap_avail_head, and full devices
> are removed from it, so with swap 100% full it iterated zero times. The
> reported hang needs the start_over/plist_node_empty() restart that
> f9e82f99b377 added IIUC.
>
> And maybe need Cc stable?

Agreed on both. I'll move Fixes to f9e82f99b377, add Cc: stable, and
send v2 as a new thread.

Thanks,
Wei Yang