Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

btl/sm: fix race condition #861

Merged

Conversation

ggouaillardet
Copy link
Contributor

write to file and then rename, so when the file is open for read, its content is known to have been written.

Fixes open-mpi/ompi#1230

(cherry picked from commit open-mpi/ompi@db4f483)

@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-pr/1184/ for details.

@ggouaillardet
Copy link
Contributor Author

:bot:assign: @bosilca
:bot:milestone:v2.0.0
:bot🏷️bug

@ompiteam-bot ompiteam-bot added this to the v2.0.0 milestone Dec 21, 2015
@bosilca
Copy link
Member

bosilca commented Dec 21, 2015

Are you certain we know it's content has been written before we close the file ?

@ggouaillardet
Copy link
Contributor Author

@bosilca I will fix this today and update the pr
thanks

write to file and then rename, so when the file is open for read, its content is known to have been written.

Fixes open-mpi/ompi#1230

(cherry picked from commit open-mpi/ompi@db4f483)
Thanks George for spotting this.

(cherry picked from commit open-mpi/ompi@607d7c7)
@ggouaillardet ggouaillardet force-pushed the topic/v2.x/sm_write_and_rename branch from 10fef2b to 70896ec Compare December 22, 2015 06:32
@mellanox-github
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ompi-release-pr/1191/ for details.

@ggouaillardet
Copy link
Contributor Author

@bosilca PR for v2.x has been updated, can you please review it ?

@jsquyres
Copy link
Member

jsquyres commented Jan 4, 2016

@bosilca Can you review this PR? Thanks.

@bosilca
Copy link
Member

bosilca commented Jan 4, 2016

👍

jsquyres added a commit that referenced this pull request Jan 4, 2016
@jsquyres jsquyres merged commit 49611b4 into open-mpi:v2.x Jan 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants