Lines Matching refs:bch_register_lock
42 struct mutex bch_register_lock; variable
428 lockdep_assert_held(&bch_register_lock); in __uuid_write()
679 lockdep_assert_held(&bch_register_lock); in bcache_device_unlink()
719 lockdep_assert_held(&bch_register_lock); in bcache_device_detach()
764 lockdep_assert_held(&bch_register_lock); in bcache_device_free()
1039 mutex_lock(&bch_register_lock); in cached_dev_detach_finish()
1048 mutex_unlock(&bch_register_lock); in cached_dev_detach_finish()
1058 lockdep_assert_held(&bch_register_lock); in bch_cached_dev_detach()
1245 mutex_lock(&bch_register_lock); in cached_dev_free()
1252 mutex_unlock(&bch_register_lock); in cached_dev_free()
1267 mutex_lock(&bch_register_lock); in cached_dev_flush()
1269 mutex_unlock(&bch_register_lock); in cached_dev_flush()
1393 mutex_lock(&bch_register_lock); in flash_dev_free()
1397 mutex_unlock(&bch_register_lock); in flash_dev_free()
1405 mutex_lock(&bch_register_lock); in flash_dev_flush()
1407 mutex_unlock(&bch_register_lock); in flash_dev_flush()
1556 mutex_lock(&bch_register_lock); in cache_set_free()
1576 mutex_unlock(&bch_register_lock); in cache_set_free()
1691 mutex_lock(&bch_register_lock); in __cache_set_unregister()
1709 mutex_unlock(&bch_register_lock); in __cache_set_unregister()
2280 mutex_lock(&bch_register_lock); in register_cache()
2282 mutex_unlock(&bch_register_lock); in register_cache()
2379 mutex_lock(&bch_register_lock); in register_bcache()
2384 mutex_unlock(&bch_register_lock); in register_bcache()
2408 mutex_lock(&bch_register_lock); in register_bcache()
2410 mutex_unlock(&bch_register_lock); in register_bcache()
2458 mutex_lock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2479 mutex_unlock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2506 mutex_lock(&bch_register_lock); in bcache_reboot()
2523 mutex_unlock(&bch_register_lock); in bcache_reboot()
2558 mutex_lock(&bch_register_lock); in bcache_reboot()
2568 mutex_unlock(&bch_register_lock); in bcache_reboot()
2579 mutex_unlock(&bch_register_lock); in bcache_reboot()
2604 mutex_destroy(&bch_register_lock); in bcache_exit()
2644 mutex_init(&bch_register_lock); in bcache_init()
2651 mutex_destroy(&bch_register_lock); in bcache_init()