Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/efa: Call efa_fork_support_enable_if_requested earlier
efa_hmem_info_initialize calls ibv_reg_mr to test for p2p support. On older kernels (without support for IBV_FORK_UNNEEDED), efa_fork_support_enable_if_requested calls ibv_fork_init, when fork support is requested. If ibv_fork_init is called, it must be called before any ibv_reg_mr calls. Otherwise, ibv_fork_init will return EINVAL. Therefore, efa_fork_support_enable_if_requested must be called before efa_hmem_info_initialize. Signed-off-by: Sai Sunku <sunkusa@amazon.com>
- Loading branch information