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/shm: Add unmap_region function #10364

Merged
merged 1 commit into from
Oct 24, 2024
Merged

prov/shm: Add unmap_region function #10364

merged 1 commit into from
Oct 24, 2024

Commits on Oct 23, 2024

  1. prov/shm: Add unmap_region function

    This function is mainly for the niche case where on progress_connreq
    a peer is added to the map with its region needing to be mapped, and
    then after mapping it, it's discovered that the newly mapped peer's
    process died. In this case we need to unmap them and free any resources
    that were opened for communicating with them.
    
    Remove lock from map_to_region and unmap_region functions and require
    lock acquirement before calling those functions. This is necessary because
    on av removal path, map will be double locked if the functions also process
    locking the map. The map_to_region function is updated to mirror this
    policy.
    
    Signed-off-by: Zach Dworkin <[email protected]>
    zachdworkin committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    592d2e0 View commit details
    Browse the repository at this point in the history