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)
commit986c28d655dc9196c9c426c667c1764bd3d6d5bd
treec617fd5bc12a7c417b0827af64cb016f718934ad
parente19252d32c45e92c919109ec32616382eb2afe6b
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