From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYImA-000456-UZ for qemu-devel@nongnu.org; Tue, 13 Nov 2012 10:51:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYIm7-0006mS-SK for qemu-devel@nongnu.org; Tue, 13 Nov 2012 10:51:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYIm7-0006mI-Ku for qemu-devel@nongnu.org; Tue, 13 Nov 2012 10:51:43 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qADFpgnq013306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Nov 2012 10:51:43 -0500 From: Kevin Wolf Date: Tue, 13 Nov 2012 16:51:28 +0100 Message-Id: <1352821889-24150-4-git-send-email-kwolf@redhat.com> In-Reply-To: <1352821889-24150-1-git-send-email-kwolf@redhat.com> References: <1352821889-24150-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 3/4] qemu-io: Use bdrv_drain_all instead of qemu_aio_flush List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com 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