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()
1153 mutex_lock(&bch_register_lock); in cached_dev_detach_finish()
1162 mutex_unlock(&bch_register_lock); in cached_dev_detach_finish()
1172 lockdep_assert_held(&bch_register_lock); in bch_cached_dev_detach()
1360 mutex_lock(&bch_register_lock); in cached_dev_free()
1369 mutex_unlock(&bch_register_lock); in cached_dev_free()
1387 mutex_lock(&bch_register_lock); in cached_dev_flush()
1389 mutex_unlock(&bch_register_lock); in cached_dev_flush()
1507 mutex_lock(&bch_register_lock); in flash_dev_free()
1512 mutex_unlock(&bch_register_lock); in flash_dev_free()
1520 mutex_lock(&bch_register_lock); in flash_dev_flush()
1522 mutex_unlock(&bch_register_lock); in flash_dev_flush()
1685 mutex_lock(&bch_register_lock); in cache_set_free()
1706 mutex_unlock(&bch_register_lock); in cache_set_free()
1819 mutex_lock(&bch_register_lock); in __cache_set_unregister()
1837 mutex_unlock(&bch_register_lock); in __cache_set_unregister()
2381 mutex_lock(&bch_register_lock); in register_cache()
2383 mutex_unlock(&bch_register_lock); in register_cache()
2471 mutex_lock(&bch_register_lock); in register_bdev_worker()
2474 mutex_unlock(&bch_register_lock); in register_bdev_worker()
2571 mutex_lock(&bch_register_lock); in register_bcache()
2577 mutex_unlock(&bch_register_lock); in register_bcache()
2623 mutex_lock(&bch_register_lock); in register_bcache()
2625 mutex_unlock(&bch_register_lock); in register_bcache()
2684 mutex_lock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2705 mutex_unlock(&bch_register_lock); in bch_pending_bdevs_cleanup()
2732 mutex_lock(&bch_register_lock); in bcache_reboot()
2749 mutex_unlock(&bch_register_lock); in bcache_reboot()
2784 mutex_lock(&bch_register_lock); in bcache_reboot()
2794 mutex_unlock(&bch_register_lock); in bcache_reboot()
2805 mutex_unlock(&bch_register_lock); in bcache_reboot()
2833 mutex_destroy(&bch_register_lock); in bcache_exit()
2873 mutex_init(&bch_register_lock); in bcache_init()
2880 mutex_destroy(&bch_register_lock); in bcache_init()