Skip to content

Conversation

shijin-aws
Copy link
Contributor

backport #11453 and #11462

Currently, the peer cleanup only happen in av remove or
av close. When application closes ep before closing av, such cleanup
won't happen because the ep is not in the av->ep_list any more.
This is actually wrong because peer is now a ep level resource
which should be cleaned as part of the ep close. This patch
fixes this issue.

Signed-off-by: Shi Jin <[email protected]>
(cherry picked from commit 6e4645d)
Currently, open_client uses an intermediate ptr av
to stage the value of avs array element, and only open
av for that av ptr only. However, this av is not tracked
after the function returns and become a wild pointer.

This patch fixes this issue by operating on the avs array
directly so it can be cleaned up properly during the free
functions

Signed-off-by: Shi Jin <[email protected]>
(cherry picked from commit 49ec2fa)
efa_cq_construct_cq_entry can be replaced by the efa_cq_read_data_entry
to avoid duplicated code.

Signed-off-by: Shi Jin <[email protected]>
(cherry picked from commit e654b3a)
@shijin-aws shijin-aws requested a review from a team October 3, 2025 21:47
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