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 v2 0/2] dm-qcow2: fix a read livelock at EOF of a read-only image
Date: Thu, 19 Nov 2026 13:51:19 +0100 [thread overview]
Message-ID: <20261119125121.861804-1-den@openvz.org> (raw)
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
next reply other threads:[~2026-11-19 12:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 12:51 Denis V. Lunev [this message]
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
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=20261119125121.861804-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 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.