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
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