summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-06-30 03:20:31 +0000
committerAnand Avati <avati@gluster.com>2011-07-01 01:26:09 -0700
commit64316c419f013464641b84900acc0ff4eeeaf2ae (patch)
tree274cf024b5fc899335e1e5fc3e9409aecd4e0b58
parentea6763a5b956c29f4c1862ed355398631ff4a9cc (diff)
rpc-transport/rdma: call ibv_fork_init to make rdma work with fork.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3091 (rebalance fails with "transport endpoint not connected" in 3.2.1 rdma set-up) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3091
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index fa2eb9e0512..49e0af0cb9f 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3923,6 +3923,7 @@ rdma_init (rpc_transport_t *this)
struct ibv_context *ib_ctx = NULL;
int32_t ret = 0;
+ ibv_fork_init ();
rdma_options_init (this);
{