[Qemu-devel] [PATCH 03/20] mirror: use bdrv_drained_begin/bdrv_drained_end

2016-10-27 Thread Paolo Bonzini
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 --- block/mirror.c | 35 ++

[Qemu-devel] [PATCH 03/20] mirror: use bdrv_drained_begin/bdrv_drained_end

2016-10-17 Thread Paolo Bonzini
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 --- block/mirror.c | 35 ++