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

kraken: librbd: is_exclusive_lock_owner API should ping OSD #14480

Merged
merged 2 commits into from Apr 14, 2017

Conversation

dillaman
Copy link

@dillaman dillaman commented Apr 12, 2017

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 6861745)
@@ -254,6 +254,40 @@ void ExclusiveLock<I>::handle_peer_notification(int r) {
}

template <typename I>
int ExclusiveLock<I>::assert_header_locked() {
CephContext *cct = m_image_ctx.cct;
ldout(cct, 10) << dendl;
Copy link
Contributor

Choose a reason for hiding this comment

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

@dillaman It needs << this << " " << __func__ << prefix to follow this file convention (the same is for other ldout/lderr in this function).

This is required to detect if a peer has been silently blacklisted
and is therefore no longer the lock owner.

Fixes: http://tracker.ceph.com/issues/19287
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit e15db05)

Conflicts:
	src/librbd/ManagedLock.[h|cc]: logic moved to ExclusiveLock
Copy link
Contributor

@trociny trociny left a comment

Choose a reason for hiding this comment

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

lgtm

@smithfarm
Copy link
Contributor

@dillaman This PR was included in this rbd run: http://pulpito.ceph.com/smithfarm-2017-04-13_17:53:19-rbd-wip-kraken-backports-distro-basic-smithi/

When I wrote this there was 1 job still running, but otherwise all passed.

OK to merge?

@dillaman
Copy link
Author

@smithfarm 👍

@smithfarm smithfarm merged commit fc5c4cd into ceph:kraken Apr 14, 2017
@dillaman dillaman deleted the wip-19467-kraken branch April 15, 2017 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants