Re: [PATCH v3 10/11] zram: use rw_semaphore for decompression streams

From: Sergey Senozhatsky

Date: Wed Oct 14 2026 - 22:04:17 EST


On (26/10/15 04:46), Barry Song wrote:
> Also, with either deflate or zstd, create_dctx() will
> always be present. So, what algorithm are we actually testing?
> What happens if we switch to zstd?

Right. Am not that concerned with deflate, but seeing zstd on that
list is a tad sad. zstd mutates decompression ctx, so it cannot be
shared. On the other hand, zstd_dctx_workspace_bound() is almost
100KB so allocating dctx per-read request will be rather problematic.