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
Wip filelock deadlock #7713
Wip filelock deadlock #7713
Conversation
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
6ea9a1c
to
7987e54
Compare
@jcsp, please review |
return l.client > r.client ? 1 : -1; | ||
if (l.owner != r.owner) | ||
return l.owner > r.owner ? 1 : -1; | ||
if (l.owner & (1ULL << 63)) |
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.
It would be good to have a descriptive-named #define for this 1<<63 mask
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.
Or just copy the comment from ceph_filelock_owner_equal up above; it confused the heck out of me until I looked at the full file and saw that. :)
This looks sane to me, I'm inclined to merge once tests are run, I've included this on just-pushed-to-gitbuilders wip-jcsp-testing branch |
… into greg-fs-testing #7713 Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by |
sounds good, it's passed through my branch as well |
Wip filelock deadlock Reviewed-by: John Spray <john.spray@redhat.com>
No description provided.