Skip to content
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

librbd: Support for shared locking in ManagedLock #12886

Merged
merged 1 commit into from Jan 18, 2017

Conversation

rjfd
Copy link
Contributor

@rjfd rjfd commented Jan 11, 2017

Signed-off-by: Ricardo Dias rdias@suse.com

@dillaman dillaman changed the title rbd: Support for shared locking in ManagedLock librbd: Support for shared locking in ManagedLock Jan 11, 2017
@dillaman
Copy link

Note: the GetLockerRequest state machine will need to be updated after #12922 is merged

@dillaman
Copy link

@rjfd nit: in your commit messages, you should use a "librbd"-prefix when making changes to librbd. The "rbd"-prefix is mostly used for the rbd CLI tool.

@@ -29,13 +29,19 @@ class ManagedLock {
public:
static const std::string WATCHER_LOCK_TAG;

enum Mode {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can you move this to managed_lock/Types.h? I have assigned myself a tracker ticket to remove all unnecessary dependencies to this templated class in order to clean up the unit tests.

@rjfd
Copy link
Contributor Author

rjfd commented Jan 16, 2017

@dillaman addressed the comments and pushed new changes

Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dillaman
Copy link

@rjfd Rebase is now required

Signed-off-by: Ricardo Dias <rdias@suse.com>
@rjfd
Copy link
Contributor Author

rjfd commented Jan 17, 2017

@dillaman rebase done

@dillaman dillaman merged commit dacf4da into ceph:master Jan 18, 2017
@rjfd rjfd deleted the wip-shared-managed-lock branch January 19, 2017 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants