]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
mirror: use bdrv_drained_begin/bdrv_drained_end
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:48:51 +0000 (12:48 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commit9a0cec664eefed475a5954006e29f2fd7cd29d2a
treef867a1f5e54b181b29653e9f003c27cd1070bc21
parentbae8196d9f97916de6323e70e3e374362ee16ec4
mirror: use bdrv_drained_begin/bdrv_drained_end

Ensure that there are no changes between the last check to
bdrv_get_dirty_count and the switch to the target.

There is already a bdrv_drained_end call, we only need to ensure
that bdrv_drained_begin is not called twice.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1477565348-5458-4-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/mirror.c