All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 v2 0/2] dm-qcow2: fix a read livelock at EOF of a read-only image
@ 2026-11-19 12:51 Denis V. Lunev
  2026-11-19 12:51 ` [Devel] [PATCH hci-8.2 v2 1/2] dm-qcow2: zero qio pages with memzero_page() instead of kmap() Denis V. Lunev
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Denis V. Lunev @ 2026-11-19 12:51 UTC (permalink / raw)
  To: alexander.ivanov, vasileios.almpanis; +Cc: devel

A read-only image whose file ends mid-page, such as a lower image made
by qemu-img convert -c, livelocks the dm-qcow2 worker on the first read
of its last compressed cluster. The fix zeroes the missing tail in the
read completion, so the zeroing helper first stops using kmap(), which
may sleep.

https://virtuozzo.atlassian.net/browse/VSTOR-155987

Tested in an HCI 8.2 VM: the livelock reproduces on stock and not with
the series, the debug kernel no longer warns about sleeping in atomic
context from either zeroing path, and the ploop test suite passes in
qcow2 and ploop formats.

v2: zero with memzero_page() in a separate patch, reword the message.
v1: http://lore.virtuozzo.com/kernel/20261119114802.765703-1-den@openvz.org/

Denis V. Lunev (2):
  dm-qcow2: zero qio pages with memzero_page() instead of kmap()
  dm-qcow2: fix a read livelock at EOF of a read-only image

 drivers/md/dm-qcow2-map.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

-- 
2.55.0

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 12:51 [Devel] [PATCH hci-8.2 v2 0/2] dm-qcow2: fix a read livelock at EOF of a read-only image Denis V. Lunev
2026-11-19 12:51 ` [Devel] [PATCH hci-8.2 v2 1/2] dm-qcow2: zero qio pages with memzero_page() instead of kmap() Denis V. Lunev
2026-11-19 12:56   ` no-reply
2026-11-19 16:38   ` Konstantin Khorenko
2026-11-19 12:51 ` [Devel] [PATCH hci-8.2 v2 2/2] dm-qcow2: fix a read livelock at EOF of a read-only image Denis V. Lunev
2026-11-19 12:58   ` no-reply
2026-11-19 13:35   ` Alexander Ivanov
2026-11-19 14:44     ` Denis V. Lunev
2026-11-19 16:38   ` Konstantin Khorenko
2026-11-19 15:25 ` [Devel] [PATCH hci-8.2 v2 0/2] " Alexander Ivanov
2026-11-19 16:38 ` Konstantin Khorenko
2026-11-19 16:38 ` Konstantin Khorenko

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.