From patchwork Wed Aug 26 13:05:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 32159 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 670CFB70B3 for ; Thu, 27 Aug 2009 03:12:12 +1000 (EST) Received: from localhost ([127.0.0.1]:38587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgM2Z-0001TP-7N for incoming@patchwork.ozlabs.org; Wed, 26 Aug 2009 13:12:07 -0400 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 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7QH5m8X031778; Wed, 26 Aug 2009 13:05:49 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7QH5kJl009197; Wed, 26 Aug 2009 13:05:48 -0400 From: Glauber Costa To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, Nolan Subject: [Qemu-devel] [PATCH 02/12] Handle BH's queued by AIO completions in qemu_aio_flush() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)