diff options
author | John Snow <jsnow@redhat.com> | 2016-02-10 13:29:39 -0500 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2016-02-10 13:29:39 -0500 |
commit | 51f7b5b883a2c9cb98ae28f1563b67f4f6d34c90 (patch) | |
tree | fb9c5082041e37253aa7e09f45b833ca4873ea65 /hw/ide | |
parent | 86698a12f7822387720840775b4eabab5f713d7c (diff) |
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.c | 2 |
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); } } |