-
Notifications
You must be signed in to change notification settings - Fork 6.3k
crimson/common/tri_mutex: also wake up waiters when demoting #59301
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
Conversation
into PGRecovery::unfound, instead of heads Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
bdd1735 to
c9fbace
Compare
82e316d to
a2ddfca
Compare
a2ddfca to
872ff63
Compare
src/crimson/common/tri_mutex.cc
Outdated
| assert(exclusively_used); | ||
| exclusively_used = false; | ||
| ++readers; | ||
| assert(!writers && !exclusively_used); |
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.
If you move this up one line, it could actually assert !readers as well, I believe.
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.
Done:-)
src/crimson/common/tri_mutex.cc
Outdated
| assert(exclusively_used); | ||
| exclusively_used = false; | ||
| ++writers; | ||
| assert(!readers && !exclusively_used); |
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.
Same here.
athanatos
left a comment
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.
Other than those nits, I think this is right.
Fixes: https://tracker.ceph.com/issues/67604 Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
872ff63 to
f956fbc
Compare
|
jenkins test api |
crimson/common/tri_mutex: also wake up waiters when demoting Reviewed-by: Samuel Just <sjust@redhat.com> Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Fixes: https://tracker.ceph.com/issues/67604
Signed-off-by: Xuehan Xu xuxuehan@qianxin.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e