Re: [Qemu-devel] [PATCH v6 13/13] block/mirror: Block "device IO" during mirror exit

2015-05-23 Thread Max Reitz
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 a

[Qemu-devel] [PATCH v6 13/13] block/mirror: Block "device IO" during mirror exit

2015-05-20 Thread Fam Zheng
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 Cong