OSDN Git Service

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)
commitd03262c75da97503d026516456da41f38aa82067
treef2868754d469edb3e8699ef6e73c6c00d779502e
parentc5593ca3c8a82eb397804e22a34d2c7061b55f56
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