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

libnuma: make numa_police_memory() free of race #107

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

pfliu
Copy link

@pfliu pfliu commented Mar 31, 2021

When numa_police_memory() read-write to memory, it can risk the race of
another thread write to the same area.

Using atomic function to protect the read-write operation

Signed-off-by: Pingfan Liu piliu@redhat.com

When numa_police_memory() read-write to memory, it can risk the race of
another thread write to the same area.

Using atomic function to protect the read-write operation

Signed-off-by: Pingfan Liu <piliu@redhat.com>
@andikleen andikleen merged commit 93867c5 into numactl:master Mar 31, 2021
@andikleen
Copy link
Contributor

Thanks!

@pfliu pfliu deleted the atomic branch June 17, 2021 03: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