mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
macio: Use blk_drain instead of blk_drain_all
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>
This commit is contained in:
parent
14e60aaece
commit
0d0437aac6
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ static void pmac_ide_flush(DBDMA_io *io)
|
||||||
IDEState *s = idebus_active_if(&m->bus);
|
IDEState *s = idebus_active_if(&m->bus);
|
||||||
|
|
||||||
if (s->bus->dma->aiocb) {
|
if (s->bus->dma->aiocb) {
|
||||||
blk_drain_all();
|
blk_drain(s->blk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue