From b2cf5bd0e8dcdee6131a5a0dbf737cd8f76d2b8b Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 24 Apr 2017 07:12:28 -0700 Subject: [PATCH] os/bluestore: get rid off excessive lock at BitMapAllocator Signed-off-by: Igor Fedotov --- src/os/bluestore/BitMapAllocator.cc | 2 -- src/os/bluestore/BitMapAllocator.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/os/bluestore/BitMapAllocator.cc b/src/os/bluestore/BitMapAllocator.cc index a254c34f00b..54e986e3ca1 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 17bb2560394..21d10f33bf4 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;