-
Notifications
You must be signed in to change notification settings - Fork 112
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
Further improve lock contention #3397
Conversation
db18fb5
to
bf4a13e
Compare
2e5e45f
to
5a6a954
Compare
The cache functions as a request-level xattr cache and reduces the number of *xattr syscalls being made.
5a6a954
to
d571de9
Compare
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.
Nice 👍 Just some clarification needed
if xattrs.IsAttrUnset(err) { | ||
return nil | ||
} |
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.
This attrunset check is also removed. Not sure if this is critical
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.
This error is only logged further up the stack, and it shouldn't occur in the first place.
This PR reduces lock contention by adding a xattr write-through cache for nodes.
The cache functions as a request-level xattr cache and reduces the number of *xattr syscalls being made.