aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-07-22 11:09:22 +0300
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:12:15 +0200
commitf4cfa9bdd40c038ac901fbf3c57ab63e9e8eb949 (patch)
tree7a20b38750670a960177ec071178ea99720e0801 /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: ctree: check key order before merging tree blocks (diff)
downloadlinux-f4cfa9bdd40c038ac901fbf3c57ab63e9e8eb949.tar.gz
linux-f4cfa9bdd40c038ac901fbf3c57ab63e9e8eb949.zip
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 <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions