]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: fix comment its device list mutex not volume lock
authorAnand Jain <anand.jain@oracle.com>
Fri, 8 Feb 2019 07:39:37 +0000 (15:39 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:37 +0000 (14:13 +0100)
We have killed volume mutex (commit: dccdb07bc996
btrfs: kill btrfs_fs_info::volume_mutex). This a trival one seems to have
escaped.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index fe122e6099ae7e59f46705a9c7e000770ad6e6c4..03f223aa7194daa0da05c9cab5a357f38927cef1 100644 (file)
@@ -1129,7 +1129,6 @@ static struct btrfs_fs_devices *clone_fs_devices(struct btrfs_fs_devices *orig)
        mutex_lock(&orig->device_list_mutex);
        fs_devices->total_devices = orig->total_devices;
 
-       /* We have held the volume lock, it is safe to get the devices. */
        list_for_each_entry(orig_dev, &orig->devices, dev_list) {
                struct rcu_string *name;