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

prov/util: Fix revert PR #9377 to revert correct lock #9468

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

a-szegel
Copy link
Contributor

@a-szegel a-szegel commented Oct 23, 2023

I mistakenly reverted the wrong lock on #9377, and caused a performance regression. This change makes the ep->lock be domain dependent, and properly reverts util_cntr ep_list_lock to always be mutex. This restores most of the performance regression.

@a-szegel a-szegel requested review from aingerson, shefty and a team October 23, 2023 22:41
Copy link
Contributor

@aingerson aingerson left a comment

Choose a reason for hiding this comment

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

Changes are good, but can you put into two separate patches to describe each one? I think in the util ep one you can also remove the comment you added that says to optimize it. Also typo in the commit message if you want to fix while you're at it (revers->reverts)

@a-szegel a-szegel changed the title prov/shm: Fix revert PR #9377 to revert correct lock prov/util: Fix revert PR #9377 to revert correct lock Oct 23, 2023
Copy link
Contributor

@aingerson aingerson left a comment

Choose a reason for hiding this comment

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

Remove comment otherwise looks good, thanks!

prov/util/src/util_ep.c Show resolved Hide resolved
I mistakenly reverted ep->lock to always be an ofi_mutex.
Restore ep->lock to depend on domain threading model

Signed-off-by: Seth Zegelstein <szegel@amazon.com>
util_cntr->ep_list_lock needs to always be a mutex lock to allow msg
endpoints to have a control thread, and claim FI_THREAD_DOMAIN.

Signed-off-by: Seth Zegelstein <szegel@amazon.com>
@j-xiong j-xiong merged commit 2901c26 into ofiwg:main Oct 26, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants