Re: [PATCH v2 2/3] zram: add async writeback infrastructure

From: Bart Van Assche
Date: Thu Jul 31 2025 - 11:24:26 EST


On 7/30/25 11:49 PM, Richard Chang wrote:
Introduce the necessary infrastructure for performing writeback
operations asynchronously.
It adds a dedicated kernel thread (`zram_wb_thread`), a request queue
for managing pending writebacks, and helper functions to deal with
the writeback requests.

Why a new kernel thread instead of a workqueue? More memory (e.g. for
a stack) is required when a new kernel thread is created compared to
using the workqueue mechanism.

Bart.