fix qemu_aio_flush
commitf29602ca0ed75cac4ef6749bbe9912c33210f72b
authorAndrea Arcangeli <aarcange@redhat.com>
Mon, 15 Jun 2009 11:52:27 +0000 (15 13:52 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Jun 2009 22:46:57 +0000 (16 17:46 -0500)
tree47d60886d79aafb8b6df73e1a197a09aee2a2e63
parent17489dd7e9605eaac85290ba9d15211914064e59
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).

(cherry picked from commit 986c28d655dc9196c9c426c667c1764bd3d6d5bd)

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