ide: replace blk_drain_all by blk_drain
authorJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:39 +0000 (13:29 -0500)
committerJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:39 +0000 (13:29 -0500)
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

hw/ide/core.c

index 5cafcf5287604f6f44ba6a0a42689e4633998953..40b6cc8c62e45e215e91a3ed6d192d74698b2b83 100644 (file)
@@ -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);
     }
 }