From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTaag-00083A-NO for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:38:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTaaf-00035p-W7 for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:38:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTaaf-000358-JO for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:38:17 -0500 From: John Snow Date: Wed, 10 Feb 2016 14:38:02 -0500 Message-Id: <1455133089-31903-6-git-send-email-jsnow@redhat.com> In-Reply-To: <1455133089-31903-1-git-send-email-jsnow@redhat.com> References: <1455133089-31903-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PULL 04/11] ide: replace blk_drain_all by blk_drain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, jsnow@redhat.com Target the drain for just one device. Signed-off-by: John Snow Reported-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi Message-id: 1453225191-11871-5-git-send-email-jsnow@redhat.com --- hw/ide/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 5cafcf5..40b6cc8 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -649,7 +649,7 @@ void ide_cancel_dma_sync(IDEState *s) #ifdef DEBUG_IDE printf("%s: draining all remaining requests", __func__); #endif - blk_drain_all(); + blk_drain(s->blk); assert(s->bus->dma->aiocb == NULL); } } -- 2.4.3