Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libibverbs: ignore IBV_FORK_SAFE et.al. when kernel has fork support #1431

Merged
merged 1 commit into from Mar 3, 2024

Conversation

krehm
Copy link
Contributor

@krehm krehm commented Feb 20, 2024

ibv_fork_init will now check if IBV_FORK_UNNEEDED is true, and if so will skip initialization of mm_root. Environment variables like IBV_FORK_SAFE and UCX_IB_FORK_INIT are silently ignored when the kernel has the necessary fork support.

ibv_fork_init will now check if IBV_FORK_UNNEEDED is true, and if so
will skip initialization of mm_root.  Environment variables like
IBV_FORK_SAFE and UCX_IB_FORK_INIT are silently ignored when the
kernel has the necessary fork support.

Signed-off-by: Kevan Rehm <kevan.rehm@hpe.com>
@jgunthorpe
Copy link
Member

@gal-pressman do you remember why we didn't do this from the start?

@gal-pressman
Copy link
Contributor

#975 (comment)

@krehm
Copy link
Contributor Author

krehm commented Feb 21, 2024

In my case, it's not a question of performance improvement, it's a way to prevent segfaults when the user specifies an environment variable that enables ibv_fork_init. Background info available here.

@jgunthorpe
Copy link
Member

Then it is probably best to move forward like this

@chien-intel
Copy link

Any issues moving forward with this PR?

@rleon rleon merged commit 3ff0150 into linux-rdma:master Mar 3, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants