]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: avoid error message when peer owns exclusive lock
authorJason Dillaman <dillaman@redhat.com>
Tue, 12 Jan 2016 15:15:09 +0000 (10:15 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 12 Jan 2016 15:15:09 +0000 (10:15 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ExclusiveLock.cc

index cf409739af3def320ffa4f6c4b6eed5fbac23bd3..83d182f5007033f63ca0e645b96d14420e438a70 100644 (file)
@@ -321,7 +321,7 @@ void ExclusiveLock<I>::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)