]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove stale comment about the btrfs_show_devname
authorAnand Jain <anand.jain@oracle.com>
Thu, 16 Dec 2021 13:04:13 +0000 (21:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:37 +0000 (09:32 +0100)
commitb63742f3023c208d8cd4150540b635fd5c62f3e5
tree21bc08349367a41b769c475f2ff461f615389633
parentf54fad828692c4e97e7e0316465c58bf2d71d475
btrfs: remove stale comment about the btrfs_show_devname

Commit 76f1eb41e9d3f42736bee84c44d5d56ef7c328ab upstream.

There were few lockdep warnings because btrfs_show_devname() was using
device_list_mutex as recorded in the commits:

  6345637861b3 ("btrfs: fix a possible umount deadlock")
  8dd3b1dd1a0f ("btrfs: fix lock dep warning, move scratch dev out of device_list_mutex and uuid_mutex")

And finally, commit 0ebd8c8e5043 ("btrfs: use RCU in btrfs_show_devname
for device list traversal") removed the device_list_mutex from
btrfs_show_devname for performance reasons.

This patch removes a stale comment about the function
btrfs_show_devname and device_list_mutex.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/volumes.c