fix qemu_aio_flush
authorAndrea Arcangeli <aarcange@redhat.com>
Mon, 15 Jun 2009 11:52:27 +0000 (13:52 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 15 Jun 2009 11:52:27 +0000 (13:52 +0200)
commitd804ac1bace3e7b11281c541ecace24664362b04
treec617fd5bc12a7c417b0827af64cb016f718934ad
parent92c10ec9f282d6c0782ff6ab33d7dc6045be95e1
fix qemu_aio_flush

qemu_aio_wait by invoking the bh or one of the aio completion
callbacks, could end up submitting new pending aio, breaking the
invariant that qemu_aio_flush returns only when no pending aio is
outstanding (possibly a problem for migration as such).

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Kevin Wolf <kwolf@redhat.com>
aio.c
qemu-aio.h