From: "Marcin Gibuła" <m.gibula@beyond.pl>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] qemu 2.0, deadlock in block-commit
Date: Fri, 23 May 2014 14:38:46 +0200 [thread overview]
Message-ID: <537F4156.8090105@beyond.pl> (raw)
In-Reply-To: <20140523122906.GB5254@noname.redhat.com>
> I see that you have a mix of aio=native and aio=threads. I can't say
> much about the aio=native disks (perhaps try to reproduce without
> them?), but there are definitely no worker threads for the other disks
> that bdrv_drain_all() would have to wait for.
True. But I/O was being done only qcow2 disk with threads backend. And
snapshot was made on this disk.
I'll try to reproduce with all 'threads'.
> bdrv_requests_pending(), called by bdrv_requests_pending_all(), is the
> function that determines for each of the disks in your VM if it still
> has requests in flight that need to be completed. This function must
> have returned true even though there is nothing to wait for.
>
> Can you check which of its conditions led to this behaviour, and for
> which disk it did? Either by setting a breakpoint there and
> singlestepping through the function the next time it is called (if the
> poll even has a timeout), or by inspecting the conditions manually in
> gdb.
I'm on it.
--
mg
next prev parent reply other threads:[~2014-05-23 12:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 20:49 [Qemu-devel] qemu 2.0, deadlock in block-commit Marcin Gibuła
2014-05-22 21:05 ` Marcin Gibuła
2014-05-23 8:19 ` Paolo Bonzini
2014-05-23 8:21 ` Marcin Gibuła
2014-05-23 9:25 ` Marcin Gibuła
2014-05-23 12:29 ` Kevin Wolf
2014-05-23 12:38 ` Marcin Gibuła [this message]
2014-05-23 13:14 ` Marcin Gibuła
2014-05-23 13:18 ` Marcin Gibuła
2014-05-23 22:02 ` Marcin Gibuła
2014-05-22 21:25 ` Eric Blake
2014-05-22 21:43 ` Marcin Gibuła
2014-05-23 12:58 ` Stefan Hajnoczi
2014-05-23 16:25 ` Marcin Gibuła
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=537F4156.8090105@beyond.pl \
--to=m.gibula@beyond.pl \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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 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).