Patchwork [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:50:31
Message ID <20110630085031.GA7784@shell.gluster.com>
Download mbox | patch
Permalink /patch/7698/
State Accepted
Headers show

Comments

Raghavendra G - 2011-06-30 08:50:31
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 fa2eb9e..49e0af0 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);
 
         {