migration: Fix extra cleanup at postcopy listen

After fixing the loadvm cleanup race the qemu_loadvm_state_cleanup()
is now being called twice in the postcopy listen thread.

Fixes: 4ce5622908 ("migration/multifd: Fix rb->receivedmap cleanup race")
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20241125191128.9120-1-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
Fabiano Rosas 2024-11-25 16:11:28 -03:00 committed by Peter Xu
parent 87ae45e602
commit 59c390d95b
1 changed files with 0 additions and 1 deletions

View File

@ -2057,7 +2057,6 @@ static void *postcopy_ram_listen_thread(void *opaque)
* got a bad migration state). * got a bad migration state).
*/ */
migration_incoming_state_destroy(); migration_incoming_state_destroy();
qemu_loadvm_state_cleanup();
rcu_unregister_thread(); rcu_unregister_thread();
mis->have_listen_thread = false; mis->have_listen_thread = false;