From: Hanna Reitz <hreitz@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org
Cc: vsementsov@virtuozzo.com, qinwang@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH 1/2] block: Lock AioContext for drain_end in blockdev-reopen
Date: Thu, 3 Feb 2022 17:37:46 +0100 [thread overview]
Message-ID: <477a12a1-78ff-4239-413e-4ad473dc5835@redhat.com> (raw)
In-Reply-To: <20220203140534.36522-2-kwolf@redhat.com>
On 03.02.22 15:05, Kevin Wolf wrote:
> bdrv_subtree_drained_end() requires the caller to hold the AioContext
> lock for the drained node. Not doing this for nodes outside of the main
> AioContext leads to crashes when AIO_WAIT_WHILE() needs to wait and
> tries to temporarily release the lock.
>
> Fixes: 3908b7a8994fa5ef7a89aa58cd5a02fc58141592
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2046659
> Reported-by: Qing Wang <qinwang@redhat.com>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> blockdev.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
next prev parent reply other threads:[~2022-02-03 16:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 14:05 [PATCH 0/2] block: Fix crash in blockdev-reopen with iothreads Kevin Wolf
2022-02-03 14:05 ` [PATCH 1/2] block: Lock AioContext for drain_end in blockdev-reopen Kevin Wolf
2022-02-03 16:37 ` Hanna Reitz [this message]
2022-02-03 14:05 ` [PATCH 2/2] iotests: Test blockdev-reopen with iothreads and throttling Kevin Wolf
2022-02-03 16:45 ` Hanna Reitz
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=477a12a1-78ff-4239-413e-4ad473dc5835@redhat.com \
--to=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qinwang@redhat.com \
--cc=vsementsov@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).