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/efa: Add missing locks in efa_msg and efa_rma #10669

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

shijin-aws
Copy link
Contributor

@shijin-aws shijin-aws commented Jan 2, 2025

efa_post_send, efa_post_write, efa_post_read accesses base_ep->is_wr_started bool which needs to be protected by a lock, otherwise there will be a race condition when multiple threads to call them at the same time

Same issue with efa_post_recv which accesses the recv_wr_index

This patch adds the required locking to protect these resources. This lock is a no-op unless FI_THREAD_SAFE.

efa_post_send, efa_post_write, efa_post_read accesses
base_ep->is_wr_started bool which needs to be protected
by a lock, otherwise there will be a race condition
when multiple threads to call them.

Same issue with efa_post_recv which accesses the recv_wr_index

This patch adds the required locking to protect these
resources. This lock is a no-op unless FI_THREAD_SAFE.

Signed-off-by: Shi Jin <[email protected]>
@shijin-aws shijin-aws requested review from jiaxiyan and a team January 2, 2025 18:35
@j-xiong j-xiong merged commit 9171a4e into ofiwg:main Jan 6, 2025
13 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