]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: switch to RCU for device traversal in btrfs_ioctl_fs_info
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 22:09:21 +0000 (00:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:12 +0000 (16:08 +0100)
commit6bb8ac8af93986c8b6e01a582b1e068e427ccaa6
treef2868754d469edb3e8699ef6e73c6c00d779502e
parentb319098b2f6b7574e13c497078a2e7b88979b613
btrfs: switch to RCU for device traversal in btrfs_ioctl_fs_info

We don't need to use the mutex as we do not modify the devices nor the
list itself and just read information about device counts.
Move copying fsid out of the protected section, not applicable to RCU
same as the rest of the retrieved information.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c