From 39bf92dd703efb04fc516aad1376986aea7d96bf Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 5 Apr 2016 19:20:53 +0800 Subject: mirror: Replace bdrv_drain(bs) with bdrv_co_drain(bs) Suggested-by: Stefan Hajnoczi Signed-off-by: Fam Zheng Message-id: 1459855253-5378-3-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3