diff mbox

[PULL,3/3] block: add missing call to bdrv_drain_recurse

Message ID 1455030691-18489-4-git-send-email-stefanha@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Hajnoczi Feb. 9, 2016, 3:11 p.m. UTC
From: Paolo Bonzini <pbonzini@redhat.com>

This is also needed in bdrv_drain_all, not just in bdrv_drain.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1450867706-19860-3-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 block/io.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/block/io.c b/block/io.c
index 343ff1f..a69bfc4 100644
--- a/block/io.c
+++ b/block/io.c
@@ -301,6 +301,7 @@  void bdrv_drain_all(void)
         if (bs->job) {
             block_job_pause(bs->job);
         }
+        bdrv_drain_recurse(bs);
         aio_context_release(aio_context);
 
         if (!g_slist_find(aio_ctxs, aio_context)) {