qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>,
	qemu-devel@nongnu.org, Alberto Garcia <berto@igalia.com>,
	qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] aio-posix: honor is_external in AioContext polling
Date: Tue, 24 Jan 2017 13:51:33 +0100	[thread overview]
Message-ID: <09a28062-5f21-7922-a945-6d4ec9fad5c9@redhat.com> (raw)
In-Reply-To: <20170124124719.GG27126@lemon.Home>



On 24/01/2017 13:47, Fam Zheng wrote:
>> I'm not sure I understand why this is related.  aio_poll() only tries
>> poll mode once, so bdrv_flush would only spin until the fsync is complete.
>
> Right, I was confused.  The problematic ones are "drain" style ones that tracks
> a inflight counter. The only suspecious one is in v9fs_reset(), otherwise we are
> safe!

And v9fs_reset in turn is fine because it doesn't use
virtio_queue_aio_set_host_notifier_handler (so it goes to
event_notifier_set_handler and then iohandler_ctx, not
qemu_get_aio_context()).

Paolo

  reply	other threads:[~2017-01-24 12:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24  9:53 [Qemu-devel] [PATCH] aio-posix: honor is_external in AioContext polling Stefan Hajnoczi
2017-01-24 12:04 ` Fam Zheng
2017-01-24 12:15   ` Paolo Bonzini
2017-01-24 12:47     ` Fam Zheng
2017-01-24 12:51       ` Paolo Bonzini [this message]
2017-01-24 13:40 ` Fam Zheng
2017-01-24 14:31 ` Alberto Garcia
2017-01-25 13:16 ` Stefan Hajnoczi

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=09a28062-5f21-7922-a945-6d4ec9fad5c9@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=berto@igalia.com \
    --cc=famz@redhat.com \
    --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).