From: John Snow Date: Wed, 10 Feb 2016 18:29:39 +0000 (-0500) Subject: ide: replace blk_drain_all by blk_drain X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git ide: replace blk_drain_all by blk_drain 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 --- diff --git a/hw/ide/core.c b/hw/ide/core.c index 5cafcf528..40b6cc8c6 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); } }