qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] rdma: Fix block during rdma migration
@ 2014-03-29  7:39 arei.gonglei
  2014-04-01  0:42 ` Michael R. Hines
  0 siblings, 1 reply; 9+ messages in thread
From: arei.gonglei @ 2014-03-29  7:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: weidong.huang, quintela, dgilbert, owasserm, Gonglei, mrhines,
	Mo Yuxiang, pbonzini

From: Mo Yuxiang <Moyuxiang@huawei.com>

If the networking break or there's something wrong with rdma
device(ib0 with no IP) during rdma migration, the main_loop of
qemu will be blocked in rdma_destroy_id. I add rdma_ack_cm_event
to fix this bug.

Signed-off-by: Mo Yuxiang <Moyuxiang@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
 migration-rdma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration-rdma.c b/migration-rdma.c
index eeb4302..f60749b 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -949,6 +949,7 @@ route:
         ERROR(errp, "result not equal to event_addr_resolved %s",
                 rdma_event_str(cm_event->event));
         perror("rdma_resolve_addr");
+        rdma_ack_cm_event(cm_event);
         ret = -EINVAL;
         goto err_resolve_get_addr;
     }
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH] rdma: Fix block during rdma migration
@ 2014-03-17  1:45 Wangyufei (James)
  0 siblings, 0 replies; 9+ messages in thread
From: Wangyufei (James) @ 2014-03-17  1:45 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: Zhaoyanbin (A), quintela@redhat.com, qemu-stable@nongnu.org,
	Wangrui (K), Michael R Hines

>From 1b02d80679a776791765b720bea21de6fe650252 Mon Sep 17 00:00:00 2001
From: Wang Yufei <james.wangyufei@huawei.com>
Date: Fri, 14 Mar 2014 01:41:13 +0000
Subject: [PATCH] rdma: Fix block during rdma migration

If the networking break or there's something wrong with rdma
device(ib0 with no IP) during rdma migration, the main_loop of
qemu will be blocked in rdma_destroy_id. I add rdma_ack_cm_event
to fix this bug.

Signed-off-by: Wang Yufei <james.wangyufei@huawei.com>
---
 migration-rdma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration-rdma.c b/migration-rdma.c
index eeb4302..f60749b 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -949,6 +949,7 @@ route:
         ERROR(errp, "result not equal to event_addr_resolved %s",
                 rdma_event_str(cm_event->event));
         perror("rdma_resolve_addr");
+        rdma_ack_cm_event(cm_event);
         ret = -EINVAL;
         goto err_resolve_get_addr;
     }
-- 
1.7.12.4

Best Regards,
-WangYufei

^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH] rdma: Fix block during rdma migration
@ 2014-03-14  1:42 Wangyufei (James)
  0 siblings, 0 replies; 9+ messages in thread
From: Wangyufei (James) @ 2014-03-14  1:42 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Zhaoyanbin (A), Wangrui (K)

>From 1b02d80679a776791765b720bea21de6fe650252 Mon Sep 17 00:00:00 2001
From: Wang Yufei <james.wangyufei@huawei.com>
Date: Fri, 14 Mar 2014 01:41:13 +0000
Subject: [PATCH] rdma: Fix block during rdma migration

If the networking break or there's something wrong with rdma
device(ib0 with no IP) during rdma migration, the main_loop of
qemu will be blocked in rdma_destroy_id. I add rdma_ack_cm_event
to fix this bug.

Signed-off-by: Wang Yufei <james.wangyufei@huawei.com>
---
 migration-rdma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration-rdma.c b/migration-rdma.c
index eeb4302..f60749b 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -949,6 +949,7 @@ route:
         ERROR(errp, "result not equal to event_addr_resolved %s",
                 rdma_event_str(cm_event->event));
         perror("rdma_resolve_addr");
+        rdma_ack_cm_event(cm_event);
         ret = -EINVAL;
         goto err_resolve_get_addr;
     }
-- 
1.7.12.4

Best Regards,
-WangYufei

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-15 10:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-29  7:39 [Qemu-devel] [PATCH] rdma: Fix block during rdma migration arei.gonglei
2014-04-01  0:42 ` Michael R. Hines
2014-04-01  1:47   ` Gonglei (Arei)
2014-05-09  4:25   ` Gonglei (Arei)
2014-05-15  0:43     ` Michael R. Hines
2014-05-15  6:47       ` Gonglei (Arei)
2014-05-15 10:08       ` Juan Quintela
  -- strict thread matches above, loose matches on Subject: below --
2014-03-17  1:45 Wangyufei (James)
2014-03-14  1:42 Wangyufei (James)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).