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

osc/pt2pt threading fixes #1365

Merged
merged 3 commits into from
Sep 8, 2016
Merged

osc/pt2pt threading fixes #1365

merged 3 commits into from
Sep 8, 2016

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Sep 2, 2016

Uncovered more threading issues while testing osc/pt2pt. Not sure if they have all been resolved but it is now running cleanly (with #1325).

:bot🏷️bug
:bot:milestone:v2.0.2
:bot:assign: @regrant

This commit fixes some bugs uncovered during thread testing of
2.0.1rc1. With these fixes the component is running cleanly with
threads.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>

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

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
It is possible for another thread to process a lock ack before the
peer is set as locked. In this case either setting the locked or the
eager active flag might clobber the other thread. To address this the
flags have been made volatile and are set atomically. Since there is
no a opal_atomic_or or opal_atomic_and function just use cmpset for
now.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>

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

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
This commit cleans up some code in the passive target path. The code
used the buffered frag control send path but it is more appropriate to
use the unbuffered one. This avoids checking structures that are
should not be in use in this path.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>

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

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@ompiteam-bot ompiteam-bot added this to the v2.0.2 milestone Sep 2, 2016
@mellanox-github
Copy link

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

@jsquyres
Copy link
Member

jsquyres commented Sep 6, 2016

@regrant Awaiting your review.

@regrant
Copy link
Contributor

regrant commented Sep 6, 2016

👍

@hppritcha
Copy link
Member

@jsquyres ready to go

@jsquyres jsquyres merged commit 9db54b2 into open-mpi:v2.x Sep 8, 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.

6 participants