Re: [PATCH] zram: freeze device queue before device reset

From: Sergey Senozhatsky

Date: Wed Aug 05 2026 - 06:29:12 EST


On (26/08/05 11:18), Sergey Senozhatsky wrote:
> Device reset does not take into account in-flight async IO
> requests so we can free meta table and reset device concurrently
> with those requests being executed. The block layer guidelines
> indicate that queue state should be protected by blk_mq_freeze_queue()
> during teardown. Freeze zram queue before device reset.
>
> Fixes: cd67e10ac699 ("zram: promote zram from staging")
> Link: https://sashiko.dev/#/patchset/20260804065919.3970386-1-xialonglong2025@xxxxxxx
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>

lockdep doesn't seem to be happy...
Let me look into it.