]> Git Repo - qemu.git/commit
mirror: Quiesce source during "mirror_exit"
authorFam Zheng <[email protected]>
Mon, 23 Nov 2015 02:28:04 +0000 (10:28 +0800)
committerJeff Cody <[email protected]>
Wed, 2 Dec 2015 15:44:06 +0000 (10:44 -0500)
commit176c36997fd4a94a7b919468d8967e0ad81fdf9c
treedc9869b8486c34bb076523735178bec2e4d8bd1a
parent9d7b969ea6d9663a94760c6c131481b366f4d38a
mirror: Quiesce source during "mirror_exit"

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 window, so
that no new external request will be handled.

Signed-off-by: Fam Zheng <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
block/mirror.c
This page took 0.024868 seconds and 4 git commands to generate.