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

Improve lock contention #3395

Merged
merged 5 commits into from
Oct 27, 2022
Merged

Conversation

aduffeck
Copy link
Contributor

This PR reduces lock contention during high load by optimistically non-locking when listing the extended attributes of a file.
Only in case of issues the list is read again while holding a lock.

Fixes owncloud/ocis#4879

We now try to list the extended attributes without grabbing a read lock
at first.
Only if that fails (e.g. due to concurrent writes to the xattrs) we read
again while holding a read lock.
@aduffeck
Copy link
Contributor Author

/cc @kobergj @dragotin

@aduffeck aduffeck merged commit df9917e into cs3org:edge Oct 27, 2022
@aduffeck aduffeck deleted the improve-lock-contention branch October 27, 2022 06:45
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