[PATCHv6 0/6] zram: introduce writeback bio batching

From: Sergey Senozhatsky

Date: Sat Nov 22 2025 - 02:40:48 EST


As writeback is becoming more and more common the longstanding
limitations of zram writeback throughput are becoming more
visible. Introduce writeback bio batching so that multiple
writeback bio-s can be processed simultaneously.

v5 -> v6:
- added some comments to make code clearer
- use write lock for batch size limit store (Andrew)
- err on 0 batch size (Brian)
- pickup reviewed-by tags (Brian)

Sergey Senozhatsky (6):
zram: introduce writeback bio batching
zram: add writeback batch size device attr
zram: take write lock in wb limit store handlers
zram: drop wb_limit_lock
zram: rework bdev block allocation
zram: read slot block idx under slot lock

drivers/block/zram/zram_drv.c | 471 ++++++++++++++++++++++++++--------
drivers/block/zram/zram_drv.h | 2 +-
2 files changed, 365 insertions(+), 108 deletions(-)

--
2.52.0.460.gd25c4c69ec-goog