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

prov/tcp: Fix race in writing to xnet_ep_fi_ops #10590

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

dsciebu
Copy link
Contributor

@dsciebu dsciebu commented Nov 28, 2024

xnet_endpoint updates the static global variable: xnet_ep_fi_ops.
This naturally causes a data race. This PR eliminates the write.

Signed-off-by: Dariusz Sciebura [email protected]

@dsciebu
Copy link
Contributor Author

dsciebu commented Nov 28, 2024

See discussion in #10588 and #10571.

@sydidelot
Copy link
Member

LGTM!

@shefty
Copy link
Member

shefty commented Dec 2, 2024

Can you please update the commit message to: "prov/tcp: Fix race ...", and also describe the race in the commit message?

xnet_endpoint updates the static global variable: xnet_ep_fi_ops.
This naturally causes a data race. This PR eliminates the write.

Signed-off-by: Dariusz Sciebura <[email protected]>
@dsciebu
Copy link
Contributor Author

dsciebu commented Dec 5, 2024

@shefty done!

Copy link
Member

@shefty shefty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! just waiting for CI, but changes look correct

@zachdworkin
Copy link
Contributor

@dsciebu I just started your CI job. Needed to wait for the migration update to be done with #10595

@dsciebu
Copy link
Contributor Author

dsciebu commented Dec 13, 2024

Hey, will you merge my patch?

@dsciebu dsciebu changed the title core/logging: Fix race in writing to xnet_ep_fi_ops prov/tcp: Fix race in writing to xnet_ep_fi_ops Dec 13, 2024
@shefty shefty merged commit c312085 into ofiwg:main Dec 13, 2024
12 of 13 checks passed
@shefty
Copy link
Member

shefty commented Dec 13, 2024

Merged, as this should go into the next release. It should probably be cherry picked into the stable release(s) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants