From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYi0S-00010e-9V for qemu-devel@nongnu.org; Wed, 14 Nov 2012 13:48:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYi0P-0000aH-5E for qemu-devel@nongnu.org; Wed, 14 Nov 2012 13:48:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYi0O-0000a8-UR for qemu-devel@nongnu.org; Wed, 14 Nov 2012 13:48:09 -0500 From: Kevin Wolf Date: Wed, 14 Nov 2012 19:47:27 +0100 Message-Id: <1352918847-3696-27-git-send-email-kwolf@redhat.com> In-Reply-To: <1352918847-3696-1-git-send-email-kwolf@redhat.com> References: <1352918847-3696-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 26/26] qemu-io: Use bdrv_drain_all instead of qemu_aio_flush List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org 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 --- qemu-io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index 1ad7d3a..92cdb2a 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; } -- 1.7.6.5