]> git.proxmox.com Git - qemu.git/commit - aio-posix.c
aio: return "AIO in progress" state from qemu_aio_wait
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Apr 2012 12:00:55 +0000 (14:00 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Apr 2012 14:50:49 +0000 (16:50 +0200)
commitbcdc18578d5b41180db2e17baa7563c5f05b39ee
treea4a818afaeed5c47f3f95786028b9aef041cfbcf
parentbafbd6a1c69fef73500309dc31c86984c6d22b43
aio: return "AIO in progress" state from qemu_aio_wait

The definition of when qemu_aio_flush should loop is much simpler
than it looks.  It just has to call qemu_aio_wait until it makes
no progress and all flush callbacks return false.  qemu_aio_wait
is the logical place to tell the caller about this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
aio.c
qemu-aio.h