diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-12-23 11:48:25 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-02-09 13:52:26 +0000 |
commit | 9dcf8ecd9e74804aa1687e5688386001a1f3f89f (patch) | |
tree | 1cc74ac9cf1a6b3d2b95b10cba872b0920610867 /block/io.c | |
parent | 794f01414f9f4c4d0c6f1961154674961941c197 (diff) | |
download | qemu-9dcf8ecd9e74804aa1687e5688386001a1f3f89f.zip |
block: add missing call to bdrv_drain_recurse
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>
Diffstat (limited to 'block/io.c')
-rw-r--r-- | block/io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/io.c b/block/io.c index 343ff1f233..a69bfc4197 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)) { |