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: Use srx lock from domain directly #9991

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

shijin-aws
Copy link
Contributor

Currently, efa_rdm_cq_readfrom access srx_lock
via util_domain->srx->peer_srx.ep_fid.fid.context. However, srx is destroyed during ep close and may not be accessible if a cq read is called after ep close. This patch fixes this issue by accessing the srx lock via efa_domain directly, as the lock is created by efa domain and cannot be destroyed before domain close.

Same issue applies to efa cntr.

Currently, efa_rdm_cq_readfrom access srx_lock
via util_domain->srx->peer_srx.ep_fid.fid.context.
However, srx is destroyed during ep close and may not
be accessible if a cq read is called after ep close.
This patch fixes this issue by accessing the srx lock
via efa_domain directly, as the lock is created by
efa domain and cannot be destroyed before domain close.

Same issue applies to efa cntr.

Signed-off-by: Shi Jin <[email protected]>
@shijin-aws shijin-aws merged commit 0bb72fd into ofiwg:main Apr 15, 2024
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.

2 participants