Skip to content

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)

Conflicts:
ompi/mca/mtl/ofi/mtl_ofi_component.c
ompi/mca/mtl/ofi/mtl_ofi_types.h

Conflicts were mainly due to some features in master and not in the release branch. So git was complaining about missing lines while cherry-picking.

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)

Conflicts:
	ompi/mca/mtl/ofi/mtl_ofi_component.c
	ompi/mca/mtl/ofi/mtl_ofi_types.h
@matcabral matcabral requested a review from hppritcha August 29, 2018 18:02
@matcabral matcabral added the bug label Aug 29, 2018
@matcabral matcabral added this to the v3.1.3 milestone Aug 29, 2018
@jsquyres
Copy link
Member

Per discussion in 2018-09-18 webex, good to go. Merging...

@jsquyres jsquyres merged commit 09856c7 into open-mpi:v3.1.x Sep 18, 2018
@aravindksg aravindksg deleted the ofi_race_fix_31x branch December 13, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants