On 21.05.2015 08:43, Fam Zheng wrote:
When mirror should complete, the source and target are in sync.  But we
call bdrv_swap() only a while later in the main loop bh. If the guest
writes something before that, target will not get the new data.

Block "device IO" before bdrv_drain and unblock it after bdrw_swap().

Reported-by: Wen Congyang <we...@cn.fujitsu.com>
Signed-off-by: Fam Zheng <f...@redhat.com>
---
  block/mirror.c | 9 ++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to