[Devel] [PATCH hci-8.2 v2 7/8] dm-qcow2: cancel the backward merge before destroying the workqueue
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Mon Nov 23 18:47:04 MSK 2026
> From: Denis V. Lunev <den at openvz.org>
>
> qcow2_tgt_destroy() cancels the backward merge only after it has
> flushed the images and destroyed tgt->wq. A merge still running there
> would dispatch its service qios to the destroyed workqueue and to
> images whose deferred activity was already flushed. DM suspends a
> target before destroying it, and presuspend already cancels the merge,
> so this does not happen today; cancel it first anyway, so that the
> teardown does not depend on that.
>
> tgt->wq is never NULL here, since alloc_qcow2_target() fails without
> it, so drop the check.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-156036
>
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123153640.128227-1-den@openvz.org?part=7
More information about the Devel
mailing list