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.

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

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.

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

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 28, 2018 21:35
@matcabral matcabral assigned matcabral and bwbarrett and unassigned matcabral Aug 28, 2018
@matcabral matcabral added the bug label Aug 28, 2018
@matcabral matcabral added this to the v3.0.3 milestone Aug 28, 2018
@hppritcha hppritcha merged commit 2a3af68 into open-mpi:v3.0.x Sep 7, 2018
@aravindksg aravindksg deleted the ofi_race_fix_30x 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