From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgLwa-0002HO-W2 for qemu-devel@nongnu.org; Wed, 26 Aug 2009 13:05:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgLwU-00028l-VI for qemu-devel@nongnu.org; Wed, 26 Aug 2009 13:05:54 -0400 Received: from [199.232.76.173] (port=45776 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgLwU-00028P-Ls for qemu-devel@nongnu.org; Wed, 26 Aug 2009 13:05:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgLwU-0000Wx-09 for qemu-devel@nongnu.org; Wed, 26 Aug 2009 13:05:50 -0400 From: Glauber Costa Date: Wed, 26 Aug 2009 09:05:36 -0400 Message-Id: <1251291946-25821-3-git-send-email-glommer@redhat.com> In-Reply-To: <1251291946-25821-2-git-send-email-glommer@redhat.com> References: <1251291946-25821-1-git-send-email-glommer@redhat.com> <1251291946-25821-2-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 02/12] Handle BH's queued by AIO completions in qemu_aio_flush() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, Nolan From: Nolan Without this, the call to qemu_aio_flush during migration doesn't actually flush all in-flight SCSI IOs. Signed-off-by: Nolan Leake sigbus.net> Signed-off-by: Anthony Liguori Signed-off-by: Glauber Costa --- aio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/aio.c b/aio.c index dc9b85d..efc63fd 100644 --- a/aio.c +++ b/aio.c @@ -112,7 +112,7 @@ void qemu_aio_flush(void) LIST_FOREACH(node, &aio_handlers, node) { ret |= node->io_flush(node->opaque); } - } while (ret > 0); + } while (qemu_bh_poll() || ret > 0); } void qemu_aio_wait(void) -- 1.6.2.2