]> git.proxmox.com Git - qemu.git/commitdiff
qemu-io: Use bdrv_drain_all instead of qemu_aio_flush
authorKevin Wolf <kwolf@redhat.com>
Tue, 13 Nov 2012 15:41:22 +0000 (16:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 14 Nov 2012 17:20:06 +0000 (18:20 +0100)
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 <kwolf@redhat.com>
qemu-io.c

index 1ad7d3adb9b34b4c77dc111692614ef382df43e6..92cdb2ab9c61811732e62da4754554fed3c56062 100644 (file)
--- 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;
 }