forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
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. Also add a unit test to catch this failure Signed-off-by: Sai Sunku <sunkusa@amazon.com>
- Loading branch information
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters