qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] macio: Use blk_drain instead of blk_drain_all
@ 2016-06-12  6:56 Fam Zheng
  2016-06-13  9:39 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
  2016-06-13 21:33 ` [Qemu-devel] " John Snow
  0 siblings, 2 replies; 7+ messages in thread
From: Fam Zheng @ 2016-06-12  6:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: John Snow, qemu-block

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

Signed-off-by: Fam Zheng <famz@redhat.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 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-14 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-12  6:56 [Qemu-devel] [PATCH] macio: Use blk_drain instead of blk_drain_all Fam Zheng
2016-06-13  9:39 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2016-06-14  1:20   ` Fam Zheng
2016-06-14  9:08   ` Stefan Hajnoczi
2016-06-13 21:33 ` [Qemu-devel] " John Snow
2016-06-14  1:21   ` Fam Zheng
2016-06-14 20:26     ` John Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).