summaryrefslogtreecommitdiffstats
path: root/hw/ide
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2016-02-10 13:29:39 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:41:57 -0600
commita9ad46cd7c23a779ca2af8a9c9ebc6e1c1a1a690 (patch)
treed7442756956a2aa097f46b52a811531563f5e49a /hw/ide
parent1a9e11075ac46c57a32aab332bf5cbc46df8bb32 (diff)
downloadhqemu-a9ad46cd7c23a779ca2af8a9c9ebc6e1c1a1a690.zip
hqemu-a9ad46cd7c23a779ca2af8a9c9ebc6e1c1a1a690.tar.gz
ide: replace blk_drain_all by blk_drain
Target the drain for just one device. Signed-off-by: John Snow <jsnow@redhat.com> Reported-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1453225191-11871-5-git-send-email-jsnow@redhat.com
Diffstat (limited to 'hw/ide')
-rw-r--r--hw/ide/core.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}
OpenPOWER on IntegriCloud