aboutsummaryrefslogtreecommitdiff
path: root/block-migration.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2011-01-26 12:12:31 -0200
committerKevin Wolf <kwolf@redhat.com>2011-02-07 12:55:25 +0100
commitf17f8b687c789b78bb1f4b53afe5354c748047ed (patch)
tree03b79b33a8d97226f903a6ae5a74f115bbae3bef /block-migration.c
parentd27dd7e1a275010a9c94d8d22a0771168ff8b8e5 (diff)
block-migration: actually disable dirty tracking on cleanup
Call to set_dirty_tracking() is misplaced. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> (cherry picked from commit 8f794c557c4b51c7a957d47ef6a2230114bb9e79)
Diffstat (limited to 'block-migration.c')
-rw-r--r--block-migration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block-migration.c b/block-migration.c
index c9d3e81dbf..483ca7bab9 100644
--- a/block-migration.c
+++ b/block-migration.c
@@ -533,6 +533,8 @@ static void blk_mig_cleanup(Monitor *mon)
BlkMigDevState *bmds;
BlkMigBlock *blk;
+ set_dirty_tracking(0);
+
while ((bmds = QSIMPLEQ_FIRST(&block_mig_state.bmds_list)) != NULL) {
QSIMPLEQ_REMOVE_HEAD(&block_mig_state.bmds_list, entry);
qemu_free(bmds->aio_bitmap);
@@ -545,8 +547,6 @@ static void blk_mig_cleanup(Monitor *mon)
qemu_free(blk);
}
- set_dirty_tracking(0);
-
monitor_printf(mon, "\n");
}