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/cxi: Allow fi_close() to complete without error #10671

Closed
wants to merge 1 commit into from

Conversation

bulbul-hpe
Copy link
Contributor

Modified libfabric behavior to ensure that fi_close() calls on an endpoint complete successfully, even if an MCAST tree is still allocated. This change prevents errors in cases where the endpoint is being closed while retaining the MCAST tree.

Modified libfabric behavior to ensure that fi_close() calls on an
endpoint complete successfully, even if an MCAST tree is still
allocated. This change prevents errors in cases where the endpoint
is being closed while retaining the MCAST tree.

Signed-off-by: Md Bulbul Sharif <[email protected]>
!ofi_atomic_get32(&buf_region->use_cnt));
if (!(pool->attr.flags & OFI_BUFPOOL_NO_TRACK)) {
count = ofi_atomic_get32(&buf_region->use_cnt);
if (count) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to suppress the error, shouldn't you create the buffer pool with OFI_BUFPOOL_NO_TRACK, or manually warn and clean them in your ep close?

@bulbul-hpe bulbul-hpe closed this Jan 3, 2025
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