From: Paolo Bonzini <pbonzini@redhat.com>
To: Jeff Cody <jcody@redhat.com>, Fam Zheng <famz@redhat.com>
Cc: kwolf@redhat.com, peter.maydell@linaro.org,
qemu-block@nongnu.org, qemu-devel@nongnu.org,
stefanha@redhat.com, John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] Regression from 2.8: stuck in bdrv_drain()
Date: Thu, 13 Apr 2017 13:45:55 +0800 [thread overview]
Message-ID: <c74d2b7d-d185-53ba-9bf9-8cf976d8f684@redhat.com> (raw)
In-Reply-To: <20170413011109.GC15762@localhost.localdomain>
On 13/04/2017 09:11, Jeff Cody wrote:
>> It didn't make it into 2.9-rc4 because of limited time. :(
>>
>> Looks like there is no -rc5, we'll have to document this as a known issue.
>> Users should "block-job-complete/cancel" as soon as possible to avoid such a
>> hang.
>
> I'd argue for including a fix for 2.9, since this is both a regression, and
> a hard lock without possible recovery short of restarting the QEMU process.
It is a bit of a corner case (and jobs on I/O thread are relatively rare
too), so maybe it's not worth delaying 2.9. It has been delayed already
quite a bit. Another reason I think I prefer to wait is to ensure that
we have an entry in qemu-iotests to avoid the future regression.
Fam explained to me what happens, and the root cause is that bdrv_drain
never does a release/acquire pair in this case, so the I/O thread run
remains stuck in a callback that tries to acquire. Ironically
reintroducing RFifoLock would probably fix this (not 100% sure). Oops.
His solution is a bit hacky, but we will hopefully be able to revert it
in 2.10 or whenever aio_context_acquire/release will go away.
Thanks,
Paolo
next prev parent reply other threads:[~2017-04-13 5:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 20:46 [Qemu-devel] Regression from 2.8: stuck in bdrv_drain() Jeff Cody
2017-04-12 21:38 ` John Snow
2017-04-12 22:22 ` Jeff Cody
2017-04-12 23:54 ` Fam Zheng
2017-04-13 1:11 ` Jeff Cody
2017-04-13 1:57 ` Jeff Cody
2017-04-13 5:45 ` Paolo Bonzini [this message]
2017-04-13 14:39 ` Stefan Hajnoczi
2017-04-13 14:45 ` Eric Blake
2017-04-13 14:50 ` Jeff Cody
2017-04-13 15:02 ` Jeff Cody
2017-04-13 17:03 ` John Snow
2017-04-13 15:29 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2017-04-13 9:48 ` [Qemu-devel] " Peter Maydell
2017-04-13 14:33 ` Eric Blake
2017-04-13 14:53 ` Peter Maydell
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=c74d2b7d-d185-53ba-9bf9-8cf976d8f684@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=jcody@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).