]> git.proxmox.com Git - mirror_qemu.git/commitdiff
macio: Use blk_drain instead of blk_drain_all
authorFam Zheng <famz@redhat.com>
Mon, 27 Jun 2016 18:28:31 +0000 (14:28 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Jun 2016 18:28:31 +0000 (14:28 -0400)
We only care about the associated backend, so blk_drain is more
appropriate here.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20160612065603.21911-1-famz@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/macio.c

index fa57352fc80eb0b26291694be1271867c06fd678..56cc50661fb3e536c8ab8c62131cc368c53c4c0a 100644 (file)
@@ -406,7 +406,7 @@ static void pmac_ide_flush(DBDMA_io *io)
     IDEState *s = idebus_active_if(&m->bus);
 
     if (s->bus->dma->aiocb) {
-        blk_drain_all();
+        blk_drain(s->blk);
     }
 }