Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dalloc.c102 mutex_lock(&c->bucket_lock); in bch_rescale_priorities()
115 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities()
142 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
289 mutex_unlock(&(ca)->set->bucket_lock); \
297 mutex_lock(&(ca)->set->bucket_lock); \
321 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
336 mutex_unlock(&ca->set->bucket_lock); in bch_allocator_thread()
340 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
417 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
419 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
[all …]
H A Dbtree.c592 lockdep_assert_held(&b->c->bucket_lock); in mca_reap()
663 mutex_lock(&c->bucket_lock); in bch_mca_scan()
664 else if (!mutex_trylock(&c->bucket_lock)) in bch_mca_scan()
709 mutex_unlock(&c->bucket_lock); in bch_mca_scan()
737 mutex_lock(&c->bucket_lock); in bch_btree_cache_free()
772 mutex_unlock(&c->bucket_lock); in bch_btree_cache_free()
905 lockdep_assert_held(&c->bucket_lock); in mca_alloc()
993 mutex_lock(&c->bucket_lock); in bch_btree_node_get()
995 mutex_unlock(&c->bucket_lock); in bch_btree_node_get()
1039 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.c666 mutex_lock(&c->bucket_lock); in bch_cache_size()
670 mutex_unlock(&c->bucket_lock); in bch_cache_size()
679 mutex_lock(&c->bucket_lock); in bch_cache_max_chain()
693 mutex_unlock(&c->bucket_lock); in bch_cache_max_chain()
1051 mutex_lock(&ca->set->bucket_lock); in SHOW()
1065 mutex_unlock(&ca->set->bucket_lock); in SHOW()
1144 mutex_lock(&ca->set->bucket_lock); in STORE()
1146 mutex_unlock(&ca->set->bucket_lock); in STORE()
H A Dmovinggc.c206 mutex_lock(&c->bucket_lock); in bch_moving_gc()
241 mutex_unlock(&c->bucket_lock); in bch_moving_gc()
H A Dsuper.c638 lockdep_assert_held(&ca->set->bucket_lock); in bch_prio_write()
665 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
667 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
673 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
678 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
1920 mutex_init(&c->bucket_lock); in bch_cache_set_alloc()
2105 mutex_lock(&c->bucket_lock); in run_cache_set()
2107 mutex_unlock(&c->bucket_lock); in run_cache_set()
H A Djournal.c455 mutex_lock(&c->bucket_lock); in btree_flush_write()
529 mutex_unlock(&c->bucket_lock); in btree_flush_write()
H A Dbcache.h541 struct mutex bucket_lock; member