Home
last modified time | relevance | path

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

/drivers/md/bcache/
Dalloc.c101 mutex_lock(&c->bucket_lock); in bch_rescale_priorities()
114 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities()
141 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
287 mutex_unlock(&(ca)->set->bucket_lock); \
295 mutex_lock(&(ca)->set->bucket_lock); \
319 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
334 mutex_unlock(&ca->set->bucket_lock); in bch_allocator_thread()
338 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
404 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
406 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
[all …]
Dbtree.c625 lockdep_assert_held(&b->c->bucket_lock); in mca_reap()
677 mutex_lock(&c->bucket_lock); in bch_mca_scan()
678 else if (!mutex_trylock(&c->bucket_lock)) in bch_mca_scan()
723 mutex_unlock(&c->bucket_lock); in bch_mca_scan()
750 mutex_lock(&c->bucket_lock); in bch_btree_cache_free()
780 mutex_unlock(&c->bucket_lock); in bch_btree_cache_free()
904 lockdep_assert_held(&c->bucket_lock); in mca_alloc()
992 mutex_lock(&c->bucket_lock); in bch_btree_node_get()
994 mutex_unlock(&c->bucket_lock); in bch_btree_node_get()
1039 mutex_lock(&parent->c->bucket_lock); in btree_node_prefetch()
[all …]
Dextents.c177 if (mutex_trylock(&b->c->bucket_lock)) { in btree_ptr_bad_expensive()
189 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
194 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
509 if (mutex_trylock(&b->c->bucket_lock)) { in bch_extent_bad_expensive()
519 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
524 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
Dsysfs.c478 mutex_lock(&c->bucket_lock); in bch_cache_size()
482 mutex_unlock(&c->bucket_lock); in bch_cache_size()
491 mutex_lock(&c->bucket_lock); in bch_cache_max_chain()
505 mutex_unlock(&c->bucket_lock); in bch_cache_max_chain()
787 mutex_lock(&ca->set->bucket_lock); in SHOW()
801 mutex_unlock(&ca->set->bucket_lock); in SHOW()
878 mutex_lock(&ca->set->bucket_lock); in STORE()
880 mutex_unlock(&ca->set->bucket_lock); in STORE()
Dmovinggc.c208 mutex_lock(&c->bucket_lock); in bch_moving_gc()
245 mutex_unlock(&c->bucket_lock); in bch_moving_gc()
Dsuper.c529 lockdep_assert_held(&ca->set->bucket_lock); in bch_prio_write()
559 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
561 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
567 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
572 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
1512 mutex_init(&c->bucket_lock); in bch_cache_set_alloc()
1678 mutex_lock(&c->bucket_lock); in run_cache_set()
1681 mutex_unlock(&c->bucket_lock); in run_cache_set()
Dbcache.h505 struct mutex bucket_lock; member