Lines Matching refs:bch_register_lock
43 struct mutex bch_register_lock; variable
507 lockdep_assert_held(&bch_register_lock); in __uuid_write()
790 lockdep_assert_held(&bch_register_lock); in bcache_device_unlink()
826 lockdep_assert_held(&bch_register_lock); in bcache_device_detach()
873 lockdep_assert_held(&bch_register_lock); in bcache_device_free()
1150 mutex_lock(&bch_register_lock); in cached_dev_detach_finish()
1159 mutex_unlock(&bch_register_lock); in cached_dev_detach_finish()
1169 lockdep_assert_held(&bch_register_lock); in bch_cached_dev_detach()
1357 mutex_lock(&bch_register_lock); in cached_dev_free()
1366 mutex_unlock(&bch_register_lock); in cached_dev_free()
1384 mutex_lock(&bch_register_lock); in cached_dev_flush()
1386 mutex_unlock(&bch_register_lock); in cached_dev_flush()
1503 mutex_lock(&bch_register_lock); in flash_dev_free()
1508 mutex_unlock(&bch_register_lock); in flash_dev_free()
1516 mutex_lock(&bch_register_lock); in flash_dev_flush()
1518 mutex_unlock(&bch_register_lock); in flash_dev_flush()
1681 mutex_lock(&bch_register_lock); in cache_set_free()
1702 mutex_unlock(&bch_register_lock); in cache_set_free()
1815 mutex_lock(&bch_register_lock); in __cache_set_unregister()
1833 mutex_unlock(&bch_register_lock); in __cache_set_unregister()
2376 mutex_lock(&bch_register_lock); in register_cache()
2378 mutex_unlock(&bch_register_lock); in register_cache()
2458 mutex_lock(&bch_register_lock); in register_bdev_worker()
2462 mutex_unlock(&bch_register_lock); in register_bdev_worker()
2580 mutex_lock(&bch_register_lock); in register_bcache()
2586 mutex_unlock(&bch_register_lock); in register_bcache()
2619 mutex_lock(&bch_register_lock); in register_bcache()
2621 mutex_unlock(&bch_register_lock); in register_bcache()
2675 mutex_lock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2696 mutex_unlock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2723 mutex_lock(&bch_register_lock); in bcache_reboot()
2740 mutex_unlock(&bch_register_lock); in bcache_reboot()
2775 mutex_lock(&bch_register_lock); in bcache_reboot()
2785 mutex_unlock(&bch_register_lock); in bcache_reboot()
2796 mutex_unlock(&bch_register_lock); in bcache_reboot()
2824 mutex_destroy(&bch_register_lock); in bcache_exit()
2864 mutex_init(&bch_register_lock); in bcache_init()
2871 mutex_destroy(&bch_register_lock); in bcache_init()