Skip to content

MTL OFI: Fix race condition due to global progress entries array #5622

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

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

aravindksg
Copy link
Contributor

Since progress entries array is globally allocated, it is susceptible
to race conditions when using multi-threaded applications. Allocating it
on the stack resolves any potential races as it is thread local by default.

Signed-off-by: Aravind Gopalakrishnan [email protected]
(cherry picked from commit ed23430)

Since progress entries array is globally allocated, it is susceptible
to race conditions when using multi-threaded applications. Allocating it
on the stack resolves any potential races as it is thread local by default.

Signed-off-by: Aravind Gopalakrishnan <[email protected]>
(cherry picked from commit ed23430)
@matcabral matcabral requested a review from hppritcha August 29, 2018 18:03
@matcabral matcabral added the bug label Aug 29, 2018
@matcabral matcabral added this to the v4.0.0 milestone Aug 29, 2018
@gpaulsen gpaulsen merged commit 51e685f into open-mpi:v4.0.x Aug 31, 2018
@aravindksg aravindksg deleted the ofi_race_fix_40x branch December 13, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants