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