]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: Add fork safe on RDMA 13740/head
authorSarit Zubakov <saritz@mellanox.com>
Mon, 20 Feb 2017 13:45:17 +0000 (13:45 +0000)
committerAdir Lev <adirl@mellanox.com>
Thu, 2 Mar 2017 07:07:54 +0000 (09:07 +0200)
commit8064dbf89f11839119285d6ba168ca28d3197853
tree6770caa7962e10bbb1f5715e0c6ea3076088b02c
parent2ce11e1872f69af8e613145aeea30e6e5f14d988
msg/async/rdma: Add fork safe on RDMA

Using forks with RDMA is dangerous, as memory is registered directly to
hardware. In the special case where the child processes do not need to
do any RDMA, calling ibv_fork_init() will instruct the OS to keep the
physical pages mapped to the parent process, hence allowing it to keep
doing RDMA safely. Should be called before any other RDMA related calls.

issue: 972567

Change-Id: I0816f62aadb02d8aa060db0c648198026bd71514
Signed-off-by: Sarit Zubakov <saritz@mellanox.com>
src/msg/async/rdma/RDMAStack.cc