Lines Matching refs:device_list_mutex
262 mutex_init(&fs_devs->device_list_mutex); in alloc_fs_devices()
626 mutex_lock(&fs_devices->device_list_mutex); in btrfs_free_stale_devices()
628 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_free_stale_devices()
657 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_free_stale_devices()
760 mutex_lock(&fs_devices->device_list_mutex); in device_list_add()
765 mutex_lock(&fs_devices->device_list_mutex); in device_list_add()
772 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
779 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
787 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
840 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
853 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
859 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
883 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
905 mutex_unlock(&fs_devices->device_list_mutex); in device_list_add()
919 mutex_lock(&orig->device_list_mutex); in clone_fs_devices()
949 mutex_unlock(&orig->device_list_mutex); in clone_fs_devices()
952 mutex_unlock(&orig->device_list_mutex); in clone_fs_devices()
1085 mutex_lock(&fs_devices->device_list_mutex); in close_fs_devices()
1089 mutex_unlock(&fs_devices->device_list_mutex); in close_fs_devices()
1970 mutex_lock(&fs_devices->device_list_mutex); in btrfs_rm_device()
1992 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_rm_device()
2037 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex); in btrfs_rm_dev_replace_remove_srcdev()
2104 mutex_lock(&fs_devices->device_list_mutex); in btrfs_destroy_dev_replace_tgtdev()
2117 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_destroy_dev_replace_tgtdev()
2244 mutex_init(&seed_devices->device_list_mutex); in btrfs_prepare_sprout()
2246 mutex_lock(&fs_devices->device_list_mutex); in btrfs_prepare_sprout()
2266 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_prepare_sprout()
2382 mutex_lock(&fs_devices->device_list_mutex); in btrfs_init_new_device()
2387 &fs_devices->device_list_mutex); in btrfs_init_new_device()
2391 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_init_new_device()
2442 mutex_lock(&fs_devices->device_list_mutex); in btrfs_init_new_device()
2477 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_init_new_device()
2545 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_init_new_device()
2560 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_init_new_device()
2804 mutex_lock(&fs_devices->device_list_mutex); in btrfs_remove_chunk()
2811 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_remove_chunk()
2828 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_remove_chunk()
2834 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_remove_chunk()
4943 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_finish_chunk_alloc()
4957 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_finish_chunk_alloc()
4971 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_finish_chunk_alloc()
6962 mutex_lock(&fs_devices->device_list_mutex); in btrfs_init_devices_late()
6965 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_init_devices_late()
6998 mutex_lock(&fs_devices->device_list_mutex); in btrfs_init_dev_stats()
7033 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_init_dev_stats()
7116 mutex_lock(&fs_devices->device_list_mutex); in btrfs_run_dev_stats()
7140 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_run_dev_stats()
7192 mutex_lock(&fs_devices->device_list_mutex); in btrfs_get_dev_stats()
7195 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_get_dev_stats()
7265 mutex_lock(&fs_devices->device_list_mutex); in btrfs_update_commit_device_size()
7273 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_update_commit_device_size()