Re: [PATCH] zram: support asynchronous writeback

From: Jens Axboe
Date: Wed Jun 18 2025 - 11:09:20 EST


On 6/18/25 7:26 AM, Richard Chang wrote:
> This commit introduces asynchronous writeback to zram, improving the
> idle writeback speed.
>
> Key changes include:
>
> * Replacing `submit_bio_wait()` with `submit_bio()` to enable
> non-blocking writeback operations.
> * Utilizing a dedicated kthread for post-writeback tasks, avoiding
> potential lock contention in interrupt context.
> * Refactoring writeback-related code into a separate file `zram_wb.c`,
> for better organization and maintainability.

This kind of laundry list is a clear sign that this should be a series
of patches, not one big patch.

--
Jens Axboe