X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibrbd%2Fexclusive_lock%2FAutomaticPolicy.cc;fp=src%2Fceph%2Fsrc%2Flibrbd%2Fexclusive_lock%2FAutomaticPolicy.cc;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=a27cf49a72c285ed188a092023ba120a20020f3c;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.cc b/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.cc deleted file mode 100644 index a27cf49..0000000 --- a/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.cc +++ /dev/null @@ -1,29 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#include "librbd/exclusive_lock/AutomaticPolicy.h" -#include "librbd/ImageCtx.h" -#include "librbd/ExclusiveLock.h" - -#define dout_subsys ceph_subsys_rbd -#undef dout_prefix -#define dout_prefix *_dout << "librbd::ExclusiveLock::AutomaticPolicy " - -namespace librbd { -namespace exclusive_lock { - -int AutomaticPolicy::lock_requested(bool force) { - assert(m_image_ctx->owner_lock.is_locked()); - assert(m_image_ctx->exclusive_lock != nullptr); - - ldout(m_image_ctx->cct, 20) << this << " " << __func__ << ": force=" << force - << dendl; - - // release the lock upon request (ignore forced requests) - m_image_ctx->exclusive_lock->release_lock(nullptr); - return 0; -} - -} // namespace exclusive_lock -} // namespace librbd -