From: Kevin Wolf Date: Tue, 13 Nov 2012 15:41:22 +0000 (+0100) Subject: qemu-io: Use bdrv_drain_all instead of qemu_aio_flush X-Git-Tag: qemu-xen-4.3.0-rc1~28^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7c8b094c2cf4f7e1609e24efffe3632cba84346;p=qemu-upstream-4.3-testing.git qemu-io: Use bdrv_drain_all instead of qemu_aio_flush This is harmless as of today because I/O throttling is not used in qemu-io, however as soon as .bdrv_drain handlers will be introduced, qemu-io must be sure to call bdrv_drain_all(). Signed-off-by: Kevin Wolf --- diff --git a/qemu-io.c b/qemu-io.c index 1ad7d3adb..92cdb2ab9 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1362,7 +1362,7 @@ static int aio_write_f(int argc, char **argv) static int aio_flush_f(int argc, char **argv) { - qemu_aio_flush(); + bdrv_drain_all(); return 0; }