-
Notifications
You must be signed in to change notification settings - Fork 35
Remove the UMF_MEM_MAP_SYNC
flag
#887
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
Remove the UMF_MEM_MAP_SYNC
flag
#887
Conversation
include/umf/memory_provider.h
Outdated
@@ -21,7 +21,8 @@ extern "C" { | |||
typedef enum umf_memory_visibility_t { | |||
UMF_MEM_MAP_PRIVATE = 1, ///< private memory mapping | |||
UMF_MEM_MAP_SHARED, ///< shared memory mapping (Linux only) | |||
UMF_MEM_MAP_SYNC, ///< direct mapping of persistent memory (supported only for files supporting DAX, Linux only) | |||
UMF_MEM_MAP_SYNC = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think attribute((deprecated)) should work here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please just redefine new flag (remove "UMF_MEM_MAP_SYNC =")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the UMF tech meeting, we agreed that UMF_MEM_MAP_SYNC
can be simply removed.
It is an API/ABI breaking change but in this particular case, it is OK because we are mostly sure that nobody uses it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Done
UMF_MEM_MAP_SYNC
flagUMF_MEM_MAP_SYNC
flag
ab94622
to
2e81b59
Compare
Make utils_mmap_file() detect DAX using MAP_SYNC flag. Add bool *map_sync argument to utils_mmap_file(). map_sync is set to true only if memory was mapped with MAP_SYNC, what means it is a DAX file/device. Signed-off-by: Lukasz Dorau <[email protected]>
Remove the UMF_MEM_MAP_SYNC flag, UMF_MEM_MAP_SHARED should be used instead. Verify if /dev/dax was mapped with MAP_SYNC. Signed-off-by: Lukasz Dorau <[email protected]>
2e81b59
to
199e754
Compare
Description
Remove the
UMF_MEM_MAP_SYNC
flag,UMF_MEM_MAP_SHARED
should be used instead.Verify if /dev/dax was mapped with
MAP_SYNC
.Checklist