Home
last modified time | relevance | path

Searched refs:bucket_lock (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/md/bcache/
H A Dalloc.c99 mutex_lock(&c->bucket_lock); in bch_rescale_priorities()
112 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities()
135 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
283 mutex_unlock(&(ca)->set->bucket_lock); \
291 mutex_lock(&(ca)->set->bucket_lock); \
315 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
401 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
407 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
486 lockdep_assert_held(&c->bucket_lock); in __bch_bucket_alloc_set()
509 mutex_lock(&c->bucket_lock); in bch_bucket_alloc_set()
[all …]
H A Dbtree.c611 lockdep_assert_held(&b->c->bucket_lock); in mca_reap()
682 mutex_lock(&c->bucket_lock); in bch_mca_scan()
683 else if (!mutex_trylock(&c->bucket_lock)) in bch_mca_scan()
728 mutex_unlock(&c->bucket_lock); in bch_mca_scan()
756 mutex_lock(&c->bucket_lock); in bch_btree_cache_free()
791 mutex_unlock(&c->bucket_lock); in bch_btree_cache_free()
929 lockdep_assert_held(&c->bucket_lock); in mca_alloc()
1020 mutex_lock(&c->bucket_lock); in bch_btree_node_get()
1022 mutex_unlock(&c->bucket_lock); in bch_btree_node_get()
1066 mutex_lock(&parent->c->bucket_lock); in btree_node_prefetch()
[all …]
H A Dextents.c179 if (mutex_trylock(&b->c->bucket_lock)) { in btree_ptr_bad_expensive()
191 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
196 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
513 if (mutex_trylock(&b->c->bucket_lock)) { in bch_extent_bad_expensive()
523 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
528 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
H A Dsysfs.c686 mutex_lock(&c->bucket_lock); in bch_cache_size()
690 mutex_unlock(&c->bucket_lock); in bch_cache_size()
699 mutex_lock(&c->bucket_lock); in bch_cache_max_chain()
707 mutex_unlock(&c->bucket_lock); in bch_cache_max_chain()
1067 mutex_lock(&ca->set->bucket_lock); in SHOW()
1081 mutex_unlock(&ca->set->bucket_lock); in SHOW()
1149 mutex_lock(&ca->set->bucket_lock); in STORE()
1151 mutex_unlock(&ca->set->bucket_lock); in STORE()
H A Dbcache.h550 struct mutex bucket_lock; member