[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/7] Removed the qemu_fclose() in colo_process_incoming_thread
From: |
Rao, Lei |
Subject: |
[PATCH v2 5/7] Removed the qemu_fclose() in colo_process_incoming_thread |
Date: |
Mon, 1 Nov 2021 15:57:03 +0800 |
From: "Rao, Lei" <lei.rao@intel.com>
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>
---
migration/colo.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/migration/colo.c b/migration/colo.c
index 907241ab5c..71fc82a040 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;
--
2.30.2
- [PATCH v2 0/7] Fixed some bugs and optimized some codes for COLO, Rao, Lei, 2021/11/01
- [PATCH v2 1/7] Some minor optimizations for COLO, Rao, Lei, 2021/11/01
- [PATCH v2 2/7] Fixed qemu crash when guest power off in COLO mode, Rao, Lei, 2021/11/01
- [PATCH v2 4/7] colo: fixed 'Segmentation fault' when the simplex mode PVM poweroff, Rao, Lei, 2021/11/01
- [PATCH v2 3/7] Fixed SVM hang when do failover before PVM crash, Rao, Lei, 2021/11/01
- [PATCH v2 5/7] Removed the qemu_fclose() in colo_process_incoming_thread,
Rao, Lei <=
- [PATCH v2 6/7] Changed the last-mode to none of first start COLO, Rao, Lei, 2021/11/01
- [PATCH v2 7/7] Optimized the function of fill_connection_key., Rao, Lei, 2021/11/01