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

Fix opened file locking #58

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Fix opened file locking #58

merged 2 commits into from
Nov 7, 2021

Conversation

nuta
Copy link
Owner

@nuta nuta commented Nov 7, 2021

The same OpenedFile can be accessed from multiple processes (from a forked processes) and
Arc<SpinLock<OpenedFile>> leads to a busy spin lock if, for example, read blocks.

Make its locking more fine-grained to prenvet the busy loop.

nuta added 2 commits November 7, 2021 21:47
The same OpenedFile can be accessed from multiple processes (from a forked processes) and
Arc<SpinLock<OpenedFile>> leads to a busy spin lock if, for example, read blocks.

Make its locking more fine-grained to prenvet the busy loop.
@nuta nuta merged commit 9f2f278 into main Nov 7, 2021
@nuta nuta deleted the fix-opened-file-locking branch November 7, 2021 14:12
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.

1 participant