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
Conversation
18c9b0d
to
2e37266
Compare
Note: the GetLockerRequest state machine will need to be updated after #12922 is merged |
@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 { |
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.
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.
2e37266
to
9785c00
Compare
@dillaman addressed the comments and pushed new changes |
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
@rjfd Rebase is now required |
Signed-off-by: Ricardo Dias <rdias@suse.com>
9785c00
to
5769c6b
Compare
@dillaman rebase done |
Signed-off-by: Ricardo Dias rdias@suse.com