mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
os/bluestore: get rid off excessive lock at BitMapAllocator
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
This commit is contained in:
parent
7801682a6b
commit
b2cf5bd0e8
@ -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();
|
||||
}
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
class BitMapAllocator : public Allocator {
|
||||
CephContext* cct;
|
||||
std::mutex m_lock;
|
||||
|
||||
int64_t m_block_size;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user