Created
March 31, 2016 20:51
-
-
Save hppritcha/7e61492cc9288da656842d3a9c998158 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 f0b4bfdb0ebdd37fd48d0ec5ecadde9b77eb1741 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..790cbeb 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