Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/md/bcache/
Dalloc.c103 mutex_lock(&c->bucket_lock); in bch_rescale_priorities()
116 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities()
143 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
290 mutex_unlock(&(ca)->set->bucket_lock); \
298 mutex_lock(&(ca)->set->bucket_lock); \
322 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
337 mutex_unlock(&ca->set->bucket_lock); in bch_allocator_thread()
341 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
415 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
417 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
[all …]
Dbtree.c643 lockdep_assert_held(&b->c->bucket_lock); in mca_reap()
714 mutex_lock(&c->bucket_lock); in bch_mca_scan()
715 else if (!mutex_trylock(&c->bucket_lock)) in bch_mca_scan()
760 mutex_unlock(&c->bucket_lock); in bch_mca_scan()
788 mutex_lock(&c->bucket_lock); in bch_btree_cache_free()
823 mutex_unlock(&c->bucket_lock); in bch_btree_cache_free()
943 lockdep_assert_held(&c->bucket_lock); in mca_alloc()
1031 mutex_lock(&c->bucket_lock); in bch_btree_node_get()
1033 mutex_unlock(&c->bucket_lock); in bch_btree_node_get()
1078 mutex_lock(&parent->c->bucket_lock); in btree_node_prefetch()
[all …]
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()
Dsysfs.c639 mutex_lock(&c->bucket_lock); in bch_cache_size()
643 mutex_unlock(&c->bucket_lock); in bch_cache_size()
652 mutex_lock(&c->bucket_lock); in bch_cache_max_chain()
666 mutex_unlock(&c->bucket_lock); in bch_cache_max_chain()
1008 mutex_lock(&ca->set->bucket_lock); in SHOW()
1022 mutex_unlock(&ca->set->bucket_lock); in SHOW()
1101 mutex_lock(&ca->set->bucket_lock); in STORE()
1103 mutex_unlock(&ca->set->bucket_lock); in STORE()
Dmovinggc.c206 mutex_lock(&c->bucket_lock); in bch_moving_gc()
243 mutex_unlock(&c->bucket_lock); in bch_moving_gc()
Dsuper.c540 lockdep_assert_held(&ca->set->bucket_lock); in bch_prio_write()
570 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
572 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
578 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
583 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
1770 mutex_init(&c->bucket_lock); in bch_cache_set_alloc()
1955 mutex_lock(&c->bucket_lock); in run_cache_set()
1958 mutex_unlock(&c->bucket_lock); in run_cache_set()
Djournal.c440 mutex_lock(&c->bucket_lock); in btree_flush_write()
465 mutex_unlock(&c->bucket_lock); in btree_flush_write()
Dbcache.h540 struct mutex bucket_lock; member