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

MFS: Race when reading node and taking read/write lock #4514

Closed
Stebalien opened this issue Dec 21, 2017 · 0 comments
Closed

MFS: Race when reading node and taking read/write lock #4514

Stebalien opened this issue Dec 21, 2017 · 0 comments

Comments

@Stebalien
Copy link
Member

We currently read the node (under the node lock), then take the read/write lock. However, a racing thread could also read the node, then take the write lock before us, update the node, and write it back. We'll then take the read (or write) lock and see the old node, not the new one.

Stebalien added a commit that referenced this issue Dec 21, 2017
Otherwise, it could be exchanged out from under us!

fixes #4514

License: MIT
Signed-off-by: Steven Allen <[email protected]>
Stebalien added a commit that referenced this issue Dec 21, 2017
Otherwise, it could be exchanged out from under us!

fixes #4514

License: MIT
Signed-off-by: Steven Allen <[email protected]>
Stebalien added a commit that referenced this issue Dec 21, 2017
Otherwise, it could be exchanged out from under us!

fixes #4514

License: MIT
Signed-off-by: Steven Allen <[email protected]>
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 a pull request may close this issue.

1 participant