-
Notifications
You must be signed in to change notification settings - Fork 527
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
curvefs/mds: fix deadlock in UpdateClientAliveTime #2311
Conversation
cicheck |
Signed-off-by: liuyuan <[email protected]>
cicheck |
bool found; |
I see, I closed this PR for now, maybe revisit it for future improvements. |
What problem does this PR solve?
Fix deadlock caused by UmontFs and UpdateClientAliveTime
Issue Number: #2308
Problem Summary: A deadlock happens when two bthread block each other.
What is changed and how it works?
What's Changed: Change the functions UpdateClientAliveTime and RefreshSession
How it Works: Make sure that the program acquires NameLock before WriteLock
Side effects(Breaking backward compatibility? Performance regression?): Unknown
Check List