From: Igor Fedotov Date: Mon, 24 Apr 2017 14:12:28 +0000 (-0700) Subject: os/bluestore: get rid off excessive lock at BitMapAllocator X-Git-Tag: v12.0.3~263^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b2cf5bd0e8dcdee6131a5a0dbf737cd8f76d2b8b;p=ceph.git os/bluestore: get rid off excessive lock at BitMapAllocator Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/BitMapAllocator.cc b/src/os/bluestore/BitMapAllocator.cc index a254c34f00b4..54e986e3ca1e 100644 --- a/src/os/bluestore/BitMapAllocator.cc +++ b/src/os/bluestore/BitMapAllocator.cc @@ -147,7 +147,6 @@ int64_t BitMapAllocator::allocate_dis( void BitMapAllocator::release( uint64_t offset, uint64_t length) { - std::lock_guard 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 l(m_lock); dout(0) << __func__ << " instance " << this << dendl; m_bit_alloc->dump(); } diff --git a/src/os/bluestore/BitMapAllocator.h b/src/os/bluestore/BitMapAllocator.h index 17bb2560394b..21d10f33bf48 100644 --- a/src/os/bluestore/BitMapAllocator.h +++ b/src/os/bluestore/BitMapAllocator.h @@ -12,7 +12,6 @@ class BitMapAllocator : public Allocator { CephContext* cct; - std::mutex m_lock; int64_t m_block_size;