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

sharedfp/sm: close the named semaphore #4685

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

edgargabriel
Copy link
Member

in case a named semaphore is used, it is necessary to close the semaphore to remove
all sm segments. sem_unlink just removes the name references once all proceeses have closed
the sem.

Fixes issue: #4336

Signed-off-by: Edgar Gabriel [email protected]

sharedfp/sm: unlink only needs to be called by one process

Signed-off-by: Edgar Gabriel [email protected]

@edgargabriel edgargabriel added this to the v2.1.3 milestone Jan 9, 2018
@edgargabriel edgargabriel self-assigned this Jan 9, 2018
@edgargabriel
Copy link
Member Author

based on the log, I do not think that the Mellanox failure has anything to do with this patch. It seems to be running in a timeout issue in a completely unrelated test.

@edgargabriel
Copy link
Member Author

bot:mellanox:retest

@artpol84
Copy link
Contributor

@edgargabriel yes, we are working to solve this.

@ggouaillardet
Copy link
Contributor

@edgargabriel can you please add a reference to the cherry-pick'ed commit 4d995bd ?

in case a named semaphore is used, it is necessary to close the semaphore to remove
all sm segments. sem_unlink just removes the name references once all proceeses have closed
the sem.

This is a cherry-pick of commit 4d995bd

Fixes issue: open-mpi#4336

Signed-off-by: Edgar Gabriel <[email protected]>

sharedfp/sm: unlink only needs to be called by one process

Signed-off-by: Edgar Gabriel <[email protected]>
@edgargabriel edgargabriel force-pushed the pr/v2.x-sem-close-fix branch from 9144211 to 444e95b Compare January 10, 2018 13:55
@edgargabriel
Copy link
Member Author

done, thanks for the reminder, forgot about it.

Copy link
Contributor

@ggouaillardet ggouaillardet left a comment

Choose a reason for hiding this comment

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

Note you can simply git cherry-pick -x <commit id> and git will automatically do that for you

@hppritcha hppritcha merged commit 5327dd6 into open-mpi:v2.x Jan 12, 2018
@edgargabriel edgargabriel deleted the pr/v2.x-sem-close-fix branch March 21, 2018 19:39
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.

4 participants