summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAntoine Tenart <atenart@kernel.org>2021-03-18 21:37:49 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-19 00:56:22 +0300
commitd7be87a687cc261d663dcf97c01056f71398f9f9 (patch)
treeb7711f58915ba8992b995d2be1ac8001c6215c6d /tools/perf/scripts/python
parent132f743b01b85b8fae7e1f298bfd81a66b9389a8 (diff)
downloadlinux-d7be87a687cc261d663dcf97c01056f71398f9f9.tar.xz
net-sysfs: move the rtnl unlock up in the xps show helpers
Now that nr_ids and num_tc are stored in the xps dev_maps, which are RCU protected, we do not have the need to protect the maps in the rtnl lock. Move the rtnl unlock up so we reduce the rtnl locking section. We also increase the reference count on the subordinate device if any, as we don't want this device to be freed while we use it (now that the rtnl lock isn't protecting it in the whole function). Signed-off-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions