Re: [RFC] zram: sleepable async read bio completion

From: Christoph Hellwig

Date: Wed Mar 04 2026 - 09:56:56 EST


On Wed, Mar 04, 2026 at 02:15:03PM +0900, Sergey Senozhatsky wrote:
> that async read back is not trivial anymore - zram needs to decompress
> the page upon bio completion. The problem is that bio completion is
> called from atomic context, while zram decompression is sleepable.
> So at this point we have to deffer the decompression to a workqueue,
> which adds (painful) latency to the read path. We clearly would like
> to avoid that workquque offloading. What can we do about it?

Nothing. bi_end_io is called from hard/softirq context usually.