-
Notifications
You must be signed in to change notification settings - Fork 257
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
rbd: Add locking rbd APIs #852
Conversation
50cde5a
to
0c78484
Compare
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
0c78484
to
6620acb
Compare
Thanks for the PR, just a heads up that we are going to release tomorrow but this PR will not be included, it should be no problem to land it in the following release. |
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.
Also while rebasing with current master you may have to resolve the conflicts manually.
Edit: Looking at the recent changes, I think there won't be any conflict to be resolved manually.
6620acb
to
77c6029
Compare
Added new locking APIs for the rbd component named `rbd_lock_acquire`, `rbd_lock_break`, `rbd_lock_release`, `rbd_lock_get_owners`, `rbd_is_exclusive_lock_owner` along with supporting TCs. Fixes: ceph#275 Signed-off-by: Nikhil-Ladha <[email protected]>
77c6029
to
d65aae7
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.
lgtm.
Thanks for all clarifications.
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.
I have exactly one thing to discuss, everything else looks good. Before I approve I want to understand the for loop in LockGetOwners. It may be fine, but I want to understand the thought process behind it first. If you do think it can be improved by using WithSizes, go ahead with the change :-)
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.
LGTM
Added new locking APIs for the rbd component named
rbd_lock_acquire
,rbd_lock_break
,rbd_lock_release
,rbd_lock_get_owners
,rbd_is_exclusive_lock_owner
along with supporting TCs.Fixes: #274
Fixes: #275
Checklist
//go:build ceph_preview
make api-update
to record new APIs