summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Snow2016-02-10 19:29:39 +0100
committerJohn Snow2016-02-10 19:29:39 +0100
commit51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90 (patch)
treefb9c5082041e37253aa7e09f45b833ca4873ea65
parentide: move buffered DMA cancel to core (diff)
downloadqemu-51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90.tar.gz
qemu-51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90.tar.xz
qemu-51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90.zip
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
-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 5cafcf5287..40b6cc8c62 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);
}
}