New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: get rid off excessive lock at BitMapAllocator #14749

Merged
merged 1 commit into from Apr 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+0 −3
Diff settings

Always

Just for now

@@ -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;
ProTip! Use n and p to navigate between commits in a pull request.