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

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Mar 2, 2016

This commit fixes several threading bugs:

  • Add an additional lock to the btl_base_endpoint_t structure to lock
    the list of pending frags. This allows the progress function to
    attempt to send pending frags without needing to drop/reaquire the
    lock. This should provide a small improvement in performance and
    fixes a potential race between adding an removing items from the
    pending list.
  • Ensure fast boxes are only set up once by updating the send count
    using atomics when needed and do not set the fast box buffer
    pointer until the fast box is set up.

Closes open-mpi/ompi#1408

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

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

(cherry picked from open-mpi/ompi@2a0b3a5)

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

This commit fixes several threading bugs:

 - Add an additional lock to the btl_base_endpoint_t structure to lock
   the list of pending frags. This allows the progress function to
   attempt to send pending frags without needing to drop/reaquire the
   lock. This should provide a small improvement in performance and
   fixes a potential race between adding an removing items from the
   pending list.

 - Ensure fast boxes are only set up once by updating the send count
   using atomics when needed and do not set the fast box buffer
   pointer until the fast box is set up.

Closes open-mpi/ompi#1408

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

(cherry picked from open-mpi/ompi@2a0b3a5)

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@ompiteam-bot ompiteam-bot added this to the v2.0.0 milestone Mar 2, 2016
@bosilca
Copy link
Member

bosilca commented Mar 2, 2016

👍

@mellanox-github
Copy link

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

hppritcha added a commit that referenced this pull request Mar 7, 2016
btl/vader: various threading fixes
@hppritcha hppritcha merged commit dff76be into open-mpi:v2.x Mar 7, 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.

Fix vader MPI_THREAD_MULTIPLE deadlock.

5 participants