From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.1 v2 3/3] dm-qcow2: fix SEEK_HOLE/SEEK_DATA using an image freed by a merge
Date: Wed, 04 Nov 2026 17:59:49 +0100 [thread overview]
Message-ID: <179381158915.2686233.9184442455379971759.b4-review@b4> (raw)
In-Reply-To: <20261103090813.166986-4-den@openvz.org>
I won't apply this version, please send v2 with the changes below.
On 11/3/26 10:08, Denis V. Lunev wrote:
> + down_write(&tgt->seek_rwsem);
> qcow2 = *tgt->backward_merge.pqcow2;
> *tgt->backward_merge.pqcow2 = qcow2->lower;
Item 4 of the cover letter reply: say in the message that merge_backward
complete now waits for a running seek while it holds ctl_mutex. Guest
I/O is no longer held, but every target message and presuspend queue
behind ctl_mutex for as long as the scan runs. That is a fair price,
the message just has to say it.
> + down_read(&tgt->seek_rwsem);
> + qcow2 = tgt->top;
Item 7 of the cover letter reply, a separate patch: when an md page read
of a seek fails, the waiting seek qio is ended, but nothing completes
SEEK_QIO_DATA(qio)->compl, so the seek sleeps forever. That is older
than this patch, but now the seek sleeps holding seek_rwsem, so the next
merge_backward complete and every message after it hang under ctl_mutex
too.
With the message fixed:
Reviewed-by: Konstantin Khorenko <khorenko@virtuozzo.com>
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-04 17:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 9:08 [Devel] [PATCH hci-8.1 v2 0/3] dm-qcow2: fix merges not stopping the users of the images they change Denis V. Lunev
2026-11-03 9:08 ` [Devel] [PATCH hci-8.1 v2 1/3] dm-qcow2: fix a failed refcount table relocation leaking md pages Denis V. Lunev
2026-11-03 9:13 ` no-reply
2026-11-03 9:27 ` Denis V. Lunev
2026-11-04 16:59 ` Konstantin Khorenko
2026-11-03 9:08 ` [Devel] [PATCH hci-8.1 v2 2/3] dm-qcow2: fix backward merge of an inner image racing its reads Denis V. Lunev
2026-11-03 9:13 ` no-reply
2026-11-04 16:59 ` Konstantin Khorenko
2026-11-03 9:08 ` [Devel] [PATCH hci-8.1 v2 3/3] dm-qcow2: fix SEEK_HOLE/SEEK_DATA using an image freed by a merge Denis V. Lunev
2026-11-03 9:15 ` no-reply
2026-11-04 16:59 ` Konstantin Khorenko [this message]
2026-11-04 13:15 ` [Devel] [PATCH hci-8.1 v2 0/3] dm-qcow2: fix merges not stopping the users of the images they change Andrey Zhadchenko
2026-11-04 16:59 ` 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=179381158915.2686233.9184442455379971759.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=den@openvz.org \
--cc=devel@openvz.org \
/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.