Skip to content
Commit c5593ca3 authored by David Sterba's avatar David Sterba
Browse files

btrfs: switch to RCU for device traversal in btrfs_ioctl_dev_info



We don't need to use the mutex as we do not modify the devices nor the
list itself and just read some information:

does not change during device lifetime:
- devid
- uuid
- name (ie. the path)

may change in parallel to the ioctl call, but can lead only to reporting
inacurracy:
- bytes_used
- total_bytes

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 08ffcae8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment