Btrfs: nuke fs wide allocation mutex V2
[linux-2.6-block.git] / fs / btrfs / volumes.c
index 7db4cfd03a98bd5697e851c4113ee9e74c43af4c..cbb9bb31431db8611ecc02b7c30e3856749a241c 100644 (file)
@@ -58,14 +58,12 @@ void btrfs_unlock_volumes(void)
 
 static void lock_chunks(struct btrfs_root *root)
 {
-       mutex_lock(&root->fs_info->alloc_mutex);
        mutex_lock(&root->fs_info->chunk_mutex);
 }
 
 static void unlock_chunks(struct btrfs_root *root)
 {
        mutex_unlock(&root->fs_info->chunk_mutex);
-       mutex_unlock(&root->fs_info->alloc_mutex);
 }
 
 int btrfs_cleanup_fs_uuids(void)