From: Jason Dillaman Date: Mon, 5 Jun 2017 12:17:05 +0000 (-0400) Subject: librbd: filter expected error codes from is_exclusive_lock_owner X-Git-Tag: ses5-milestone6~8^2~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4daaf54e6bc42cd4fb2111ea20b2042941b0c31;p=ceph.git librbd: filter expected error codes from is_exclusive_lock_owner Fixes: http://tracker.ceph.com/issues/20182 Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index 40931127bd1a..c803ed542151 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -1132,7 +1132,9 @@ int validate_pool(IoCtx &io_ctx, CephContext *cct) { // might have been blacklisted by peer -- ensure we still own // the lock by pinging the OSD int r = ictx->exclusive_lock->assert_header_locked(); - if (r < 0) { + if (r == -EBUSY || r == -ENOENT) { + return 0; + } else if (r < 0) { return r; }