aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2020-07-22 11:09:22 +0300
committerDavid Sterba <[email protected]>2020-10-07 12:12:15 +0200
commitf4cfa9bdd40c038ac901fbf3c57ab63e9e8eb949 (patch)
tree7a20b38750670a960177ec071178ea99720e0801 /tools/perf/scripts/python/bin
parentd16c702fe4f274bd77b47d3ab737eadcf24e0b93 (diff)
btrfs: use RCU for quick device check in btrfs_init_new_device
When adding a new device there's a mandatory check to see if a device is being duplicated to the filesystem it's added to. Since this is a read-only operations not necessary to take device_list_mutex and can simply make do with an rcu-readlock. Using just RCU is safe because there won't be another device add delete running in parallel as btrfs_init_new_device is called only from btrfs_ioctl_add_dev. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions