]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Removed the qemu_fclose() in colo_process_incoming_thread
authorRao, Lei <lei.rao@intel.com>
Mon, 1 Nov 2021 07:57:03 +0000 (15:57 +0800)
committerJuan Quintela <quintela@trasno.org>
Wed, 3 Nov 2021 08:38:53 +0000 (09:38 +0100)
After the live migration, the related fd will be cleanup in
migration_incoming_state_destroy(). So, the qemu_close()
in colo_process_incoming_thread is not necessary.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/colo.c

index 907241ab5c13f5ce9dda42db091ae811ab302594..71fc82a040b0b75f3dcb04b8576c59f8dd9b3cc6 100644 (file)
@@ -919,11 +919,6 @@ out:
     /* Hope this not to be too long to loop here */
     qemu_sem_wait(&mis->colo_incoming_sem);
     qemu_sem_destroy(&mis->colo_incoming_sem);
-    /* Must be called after failover BH is completed */
-    if (mis->to_src_file) {
-        qemu_fclose(mis->to_src_file);
-        mis->to_src_file = NULL;
-    }
 
     rcu_unregister_thread();
     return NULL;