From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwNOs-0008TR-G1 for qemu-devel@nongnu.org; Sun, 15 Jun 2014 23:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwNOn-0002qr-Ks for qemu-devel@nongnu.org; Sun, 15 Jun 2014 23:16:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwNOn-0002qm-Bz for qemu-devel@nongnu.org; Sun, 15 Jun 2014 23:15:57 -0400 From: Juan Quintela Date: Mon, 16 Jun 2014 05:15:38 +0200 Message-Id: <1402888539-14961-6-git-send-email-quintela@redhat.com> In-Reply-To: <1402888539-14961-1-git-send-email-quintela@redhat.com> References: <1402888539-14961-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 5/6] rdma: Fix block during rdma migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mo Yuxiang , Gonglei From: Gonglei 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 Signed-off-by: Gonglei Reviewed-by: Michael R. Hines Signed-off-by: Juan Quintela --- 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.9.3