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>
This commit is contained in:
Marcelo Tosatti 2011-01-26 12:12:31 -02:00 committed by Kevin Wolf
parent 2c4b9d0ea4
commit 8f794c557c

View File

@ -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");
}