qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH] macio: Use blk_drain instead of blk_drain_all


From: Fam Zheng
Subject: [Qemu-block] [PATCH] macio: Use blk_drain instead of blk_drain_all
Date: Sun, 12 Jun 2016 14:56:03 +0800

We only care about the associated backend, so blk_drain is more
appropriate here.

Signed-off-by: Fam Zheng <address@hidden>
---
 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 78c10a0..a8c7321 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -400,7 +400,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);
     }
 }
 
-- 
2.8.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]