From: "Denis V. Lunev" <den@openvz.org>
To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters
Date: Thu, 19 Nov 2026 15:30:24 +0100 [thread overview]
Message-ID: <20261119143026.998715-1-den@openvz.org> (raw)
An online backward merge copies the compressed clusters of the top image
into the lower image raw, so the merged device returns compressed
streams instead of data, and qemu-img check sees nothing wrong. Read
them through the decompression path instead. A failed decompression
setup also leaves one read, COW or merge qio unfinished, which would
now stall the merge.
https://virtuozzo.atlassian.net/browse/VSTOR-156064
Applies on top of the series "dm-qcow2: fix a read livelock at EOF of a
read-only image" v2.
Tested in an HCI 8.2 VM: the merged device matches the chain on zstd,
zlib and ext_l2 images, a failed buffer allocation ends the read
instead of hanging it, and the ploop test suite passes in qcow2 and
ploop formats.
Denis V. Lunev (2):
dm-qcow2: decompress compressed clusters merged into the lower image
dm-qcow2: end the popped qio when decompression setup fails
drivers/md/dm-qcow2-map.c | 43 +++++++++++++++++++++++++++++++--------
1 file changed, 34 insertions(+), 9 deletions(-)
--
2.55.0
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next reply other threads:[~2026-11-19 14:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 14:30 Denis V. Lunev [this message]
2026-11-19 14:30 ` [Devel] [PATCH hci-8.2 1/2] dm-qcow2: decompress compressed clusters merged into the lower image Denis V. Lunev
2026-11-19 14:39 ` no-reply
2026-11-19 16:45 ` Konstantin Khorenko
2026-11-19 14:30 ` [Devel] [PATCH hci-8.2 2/2] dm-qcow2: end the popped qio when decompression setup fails Denis V. Lunev
2026-11-19 14:42 ` no-reply
2026-11-19 16:45 ` Konstantin Khorenko
2026-11-19 16:45 ` [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters Konstantin Khorenko
2026-11-19 16:45 ` Konstantin Khorenko
2026-11-19 16:48 ` Alexander Ivanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119143026.998715-1-den@openvz.org \
--to=den@openvz.org \
--cc=alexander.ivanov@virtuozzo.com \
--cc=devel@openvz.org \
--cc=vasileios.almpanis@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox