summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFam Zheng2016-04-05 13:20:53 +0200
committerStefan Hajnoczi2016-04-11 17:59:09 +0200
commit39bf92dd703efb04fc516aad1376986aea7d96bf (patch)
treea02075b6a9be0095eef6b4ea749c9105253bead1 /block
parentblock: Fix bdrv_drain in coroutine (diff)
downloadqemu-39bf92dd703efb04fc516aad1376986aea7d96bf.tar.gz
qemu-39bf92dd703efb04fc516aad1376986aea7d96bf.tar.xz
qemu-39bf92dd703efb04fc516aad1376986aea7d96bf.zip
mirror: Replace bdrv_drain(bs) with bdrv_co_drain(bs)
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1459855253-5378-3-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c
index f64db1a69b..c2cfc1a5ef 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -650,7 +650,7 @@ static void coroutine_fn mirror_run(void *opaque)
* mirror_populate runs.
*/
trace_mirror_before_drain(s, cnt);
- bdrv_drain(bs);
+ bdrv_co_drain(bs);
cnt = bdrv_get_dirty_count(s->dirty_bitmap);
}