commit | 176c36997fd4a94a7b919468d8967e0ad81fdf9c | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Mon Nov 23 10:28:04 2015 +0800 |
committer | Jeff Cody <jcody@redhat.com> | Wed Dec 02 10:44:06 2015 -0500 |
tree | dc9869b8486c34bb076523735178bec2e4d8bd1a | |
parent | 9d7b969ea6d9663a94760c6c131481b366f4d38a [diff] |
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 <famz@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>