]> Git Repo - qemu.git/commitdiff
migration/rdma: Don't moan about disconnects at the end
authorDr. David Alan Gilbert <[email protected]>
Fri, 13 Sep 2019 16:35:06 +0000 (17:35 +0100)
committerDr. David Alan Gilbert <[email protected]>
Wed, 25 Sep 2019 14:51:19 +0000 (15:51 +0100)
If we've already finished the migration or something has
already gone wrong, don't moan about the migration stream disconnecting.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <20190913163507[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
migration/rdma.c

index 78e6b72bacd746b37a0184a7247103dd15643377..0fcf02f48e01953c73bbb5e68c57c830acd7afe2 100644 (file)
@@ -3253,10 +3253,14 @@ static void rdma_cm_poll_handler(void *opaque)
 
     if (cm_event->event == RDMA_CM_EVENT_DISCONNECTED ||
         cm_event->event == RDMA_CM_EVENT_DEVICE_REMOVAL) {
-        error_report("receive cm event, cm event is %d", cm_event->event);
-        rdma->error_state = -EPIPE;
-        if (rdma->return_path) {
-            rdma->return_path->error_state = -EPIPE;
+        if (!rdma->error_state &&
+            migration_incoming_get_current()->state !=
+              MIGRATION_STATUS_COMPLETED) {
+            error_report("receive cm event, cm event is %d", cm_event->event);
+            rdma->error_state = -EPIPE;
+            if (rdma->return_path) {
+                rdma->return_path->error_state = -EPIPE;
+            }
         }
 
         if (mis->migration_incoming_co) {
This page took 0.031747 seconds and 4 git commands to generate.