[Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters
Denis V. Lunev
den at openvz.org
Thu Nov 19 17:30:24 MSK 2026
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
More information about the Devel
mailing list