migration: Fix extra cleanup at postcopy listen
authorFabiano Rosas <farosas@suse.de>
Mon, 25 Nov 2024 19:11:28 +0000 (16:11 -0300)
committerPeter Xu <peterx@redhat.com>
Mon, 25 Nov 2024 21:21:55 +0000 (16:21 -0500)
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>
migration/savevm.c

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