[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V2 1/7] Migration/colo.c: Fix double close bug when
From: |
Zhang Chen |
Subject: |
[Qemu-devel] [PATCH V2 1/7] Migration/colo.c: Fix double close bug when occur COLO failover |
Date: |
Fri, 1 Mar 2019 00:55:02 +0800 |
From: Zhang Chen <address@hidden>
In migration_incoming_state_destroy(void) will check the mis->to_src_file
to double close the mis->to_src_file when occur COLO failover.
Signed-off-by: Zhang Chen <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
---
migration/colo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/migration/colo.c b/migration/colo.c
index 398b239d1c..a916dc178c 100644
--- a/migration/colo.c
+++ b/migration/colo.c
@@ -872,6 +872,7 @@ out:
/* Must be called after failover BH is completed */
if (mis->to_src_file) {
qemu_fclose(mis->to_src_file);
+ mis->to_src_file = NULL;
}
migration_incoming_disable_colo();
--
2.17.GIT
- [Qemu-devel] [PATCH V2 0/7] Migration/colo: Fix upstream bugs when occur failover, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 1/7] Migration/colo.c: Fix double close bug when occur COLO failover,
Zhang Chen <=
- [Qemu-devel] [PATCH V2 2/7] Migration/colo.c: Fix COLO failover status error, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 3/7] Migration/colo.c: Make COLO node running after failover, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 4/7] Migration/colo.c: Add new COLOExitReason to handle all failover state, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 5/7] qapi/migration.json: Remove a variable that doesn't exist in example, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 6/7] Migration/colo.c: Add the necessary checks for colo_do_failover, Zhang Chen, 2019/02/28
- [Qemu-devel] [PATCH V2 7/7] Migration/colo.c: Make user obtain the COLO mode info after failover, Zhang Chen, 2019/02/28