[block-manager] ensure the superblock cannot be taken concurrently with any other lock.
This commit is contained in:
@@ -504,6 +504,12 @@ block_cache::get_nr_blocks() const
|
||||
return nr_data_blocks_;
|
||||
}
|
||||
|
||||
uint64_t
|
||||
block_cache::get_nr_locked() const
|
||||
{
|
||||
return nr_locked_;
|
||||
}
|
||||
|
||||
void
|
||||
block_cache::zero_block(block &b)
|
||||
{
|
||||
|
@@ -119,6 +119,7 @@ namespace bcache {
|
||||
~block_cache();
|
||||
|
||||
uint64_t get_nr_blocks() const;
|
||||
uint64_t get_nr_locked() const;
|
||||
|
||||
enum get_flags {
|
||||
GF_ZERO = (1 << 0),
|
||||
|
Reference in New Issue
Block a user