Re: [PATCH 0/2] mm/zswap: batch the writeback IO

From: Christoph Hellwig

Date: Thu Oct 08 2026 - 06:07:44 EST


On Wed, Oct 07, 2026 at 05:34:42PM +0200, Alexandre Ghiti wrote:
> Since commit 8f29aa226f82 ("mm/swap: introduce struct swap_io_ctx"),
> reclaim merges the swap writes of folios with consecutive slots into a
> single bio, but zswap writeback still issues one IO per entry. Patch 1
> makes each zswap LRU walk batch its writeback IO. Patch 2 plugs the
> walk, so that the block layer can merge what the batch cannot.

No a zswap expert, but from the high-level perspective this looks
great.