All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters
@ 2026-11-19 14:30 Denis V. Lunev
  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
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Denis V. Lunev @ 2026-11-19 14:30 UTC (permalink / raw)
  To: alexander.ivanov, vasileios.almpanis; +Cc: devel

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-19 16:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 14:30 [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters Denis V. Lunev
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.