]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/volumes.c
Btrfs: Release uuid_mutex for shrink during device delete
[karo-tx-linux.git] / fs / btrfs / volumes.c
index 78b871753cb61e099abdfca27a0e316c37c329ee..b5c2b6acbf60677efd4a516c0c4002f2b38e763d 100644 (file)
@@ -1562,7 +1562,9 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
                clear_super = true;
        }
 
+       mutex_unlock(&uuid_mutex);
        ret = btrfs_shrink_device(device, 0);
+       mutex_lock(&uuid_mutex);
        if (ret)
                goto error_undo;