]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: get rid off excessive lock at BitMapAllocator 14749/head
authorIgor Fedotov <ifedotov@mirantis.com>
Mon, 24 Apr 2017 14:12:28 +0000 (07:12 -0700)
committerIgor Fedotov <ifedotov@mirantis.com>
Mon, 24 Apr 2017 14:15:10 +0000 (07:15 -0700)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/BitMapAllocator.cc
src/os/bluestore/BitMapAllocator.h

index a254c34f00b41cad323018338f39c603e335ccc4..54e986e3ca1e1e890cd7b2505e3af3f2e2bcd714 100644 (file)
@@ -147,7 +147,6 @@ int64_t BitMapAllocator::allocate_dis(
 void BitMapAllocator::release(
   uint64_t offset, uint64_t length)
 {
-  std::lock_guard<std::mutex> l(m_lock);
   dout(10) << __func__ << " 0x"
            << std::hex << offset << "~" << length << std::dec
            << dendl;
@@ -164,7 +163,6 @@ uint64_t BitMapAllocator::get_free()
 
 void BitMapAllocator::dump()
 {
-  std::lock_guard<std::mutex> l(m_lock);
   dout(0) << __func__ << " instance " << this << dendl;
   m_bit_alloc->dump();
 }
index 17bb2560394b4181518f46ca47787793524a6971..21d10f33bf483fd08cbecb75b1821b7d63a9a55e 100644 (file)
@@ -12,7 +12,6 @@
 
 class BitMapAllocator : public Allocator {
   CephContext* cct;
-  std::mutex m_lock;
 
   int64_t m_block_size;