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

login
register
Submitter Raghavendra G
Date 2011-07-01 04:31:23
Message ID <20110701043123.GA9537@shell.gluster.com>
Download mbox | patch
Permalink /patch/7702/
State Accepted
Headers show

Comments

Raghavendra G - 2011-07-01 04:31:23
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 c70c84a..cc2b909 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3937,6 +3937,7 @@  rdma_init (rpc_transport_t *this)
 
         rdma_options_init (this);
 
+        ibv_fork_init ();
         {
                 dev_list = ibv_get_device_list (NULL);