Created
March 31, 2016 18:53
-
-
Save hppritcha/192958c477bf1157f7bed6c50ea40720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a44735011ce8396e1f6bb9d3513c1bb618cf552c Mon Sep 17 00:00:00 2001 | |
From: Howard Pritchard <howardp@lanl.gov> | |
Date: Thu, 31 Mar 2016 12:48:16 -0600 | |
Subject: [PATCH 2/2] prov/verbs: fix a shutdown bug | |
Signed-off-by: Howard Pritchard <howardp@lanl.gov> | |
--- | |
prov/verbs/src/ep_rdm/verbs_av_ep_rdm.c | 7 ++++--- | |
1 files changed, 4 insertions(+), 3 deletions(-) | |
diff --git a/prov/verbs/src/ep_rdm/verbs_av_ep_rdm.c b/prov/verbs/src/ep_rdm/verbs_av_ep_rdm.c | |
index 3b36956..ffeaa70 100644 | |
--- a/prov/verbs/src/ep_rdm/verbs_av_ep_rdm.c | |
+++ b/prov/verbs/src/ep_rdm/verbs_av_ep_rdm.c | |
@@ -149,10 +149,11 @@ static int fi_ibv_rdm_av_remove(struct fid_av *av, fi_addr_t * fi_addr, | |
for (i = 0; i < count; i++) { | |
conn = (struct fi_ibv_rdm_tagged_conn *) fi_addr[i]; | |
- FI_INFO(&fi_ibv_prov, FI_LOG_AV, "av_remove conn %p, addr %s:%u\n", | |
+ FI_INFO(&fi_ibv_prov, FI_LOG_AV, "av_remove conn %p, addr %s:%u state = %d\n", | |
conn, inet_ntoa(conn->addr.sin_addr), | |
- ntohs(conn->addr.sin_port)); | |
- rdma_disconnect(conn->id[0]); | |
+ ntohs(conn->addr.sin_port),conn->state); | |
+ if (conn->state >= FI_VERBS_CONN_ESTABLISHED) | |
+ rdma_disconnect(conn->id[0]); | |
} | |
return 0; | |
-- | |
1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment