Re: [Qemu-block] [PATCH] mirror: Quiesce source during "mirror_exit"

2015-12-02 Thread Jeff Cody
On Mon, Nov 23, 2015 at 10:28:04AM +0800, Fam Zheng wrote: > With dataplane, the ioeventfd events could be dispatched after > mirror_run releases the dirty bitmap, but before mirror_exit actually > does the device switch, because the iothread will still be running, and > it will cause silent data

[Qemu-block] [PATCH] mirror: Quiesce source during "mirror_exit"

2015-11-22 Thread Fam Zheng
With dataplane, the ioeventfd events could be dispatched after mirror_run releases the dirty bitmap, but before mirror_exit actually does the device switch, because the iothread will still be running, and it will cause silent data loss. Fix this by adding a bdrv_drained_begin/end pair around the