From: Jason Dillaman Date: Tue, 12 Jan 2016 15:15:09 +0000 (-0500) Subject: librbd: avoid error message when peer owns exclusive lock X-Git-Tag: v10.0.2~1^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=521614645548b78ff905eda4fc948ba60758bff8;p=ceph.git librbd: avoid error message when peer owns exclusive lock Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/ExclusiveLock.cc b/src/librbd/ExclusiveLock.cc index cf409739af3d..83d182f50070 100644 --- a/src/librbd/ExclusiveLock.cc +++ b/src/librbd/ExclusiveLock.cc @@ -321,7 +321,7 @@ void ExclusiveLock::handle_acquire_lock(int r) { CephContext *cct = m_image_ctx.cct; ldout(cct, 10) << this << " " << __func__ << ": r=" << r << dendl; - if (r == -EBUSY) { + if (r == -EBUSY || r == -EAGAIN) { ldout(cct, 5) << "unable to acquire exclusive lock" << dendl; } else if (r < 0) { lderr(cct) << "failed to acquire exclusive lock:" << cpp_strerror(r)