-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/mr_cache: Defer MR cleanup to flush operation
We cannot safely hold the monitor lock while freeing memory or deregistering a MR. Doing so can result in hanging the local thread, as well as the uffd thread. When uncaching a region, instead of removing it immediately if the use_cnt is 0, instead queue it to a flush_list associated with the MR cache. When calling ofi_mr_cache_flush, always cleanup the flush_list, without holding the monitor lock. Signed-off-by: Sean Hefty <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters