Skip to content

Commit

Permalink
Merge pull request #14749 from ifed01/wip-bluestore-nolock-alloc
Browse files Browse the repository at this point in the history
os/bluestore: get rid off excessive lock at BitMapAllocator

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Apr 25, 2017
2 parents dba3de2 + b2cf5bd commit 0b2b544
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/os/bluestore/BitMapAllocator.cc
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down
1 change: 0 additions & 1 deletion src/os/bluestore/BitMapAllocator.h
Expand Up @@ -12,7 +12,6 @@

class BitMapAllocator : public Allocator {
CephContext* cct;
std::mutex m_lock;

int64_t m_block_size;

Expand Down

0 comments on commit 0b2b544

Please sign in to comment.