From: Rao, Lei Date: Mon, 1 Nov 2021 07:57:03 +0000 (+0800) Subject: Removed the qemu_fclose() in colo_process_incoming_thread X-Git-Tag: v6.2.0-rc0~14^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04dd89169b94789aacde0a9b29943e8614879343;p=thirdparty%2Fqemu.git Removed the qemu_fclose() in colo_process_incoming_thread 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 Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- diff --git a/migration/colo.c b/migration/colo.c index 907241ab5c1..71fc82a040b 100644 --- a/migration/colo.c +++ b/migration/colo.c @@ -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;