File 0094-macio-Use-blk_drain-instead-of-blk_.patch of Package qemu.5923
From 4191086657941548c9abcff03ed9e29d6e9b73b4 Mon Sep 17 00:00:00 2001
From: Fam Zheng <famz@redhat.com>
Date: Mon, 27 Jun 2016 14:28:31 -0400
Subject: [PATCH] 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>
(cherry picked from commit 0d0437aac6dc94bdc1601968bbb9e623e34bd3e7)
[BR: BSC#1013341]
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
hw/ide/macio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index 664328d174..63d6a076d3 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -403,7 +403,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);
}
}