Patchwork [BRANCH:release-3.2,BUG:3091,1/2] rpc-transport/rdma: call ibv_fork_init to make rdma work with fork.

login
register
Submitter Raghavendra G
Date 2011-06-30 08:48:37
Message ID <20110630084837.GA7738@shell.gluster.com>
Download mbox | patch
Permalink /patch/7695/
State Accepted
Headers show

Comments

Raghavendra G - 2011-06-30 08:48:37
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
---
 rpc/rpc-transport/rdma/src/rdma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index 7d2bfc0..a310508 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3921,6 +3921,7 @@  rdma_init (rpc_transport_t *this)
         struct ibv_context *ib_ctx = NULL;
         int32_t ret = 0;
 
+        ibv_fork_init ();
         rdma_options_init (this);
 
         {