summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2022-05-08 11:08:21 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-08 13:46:20 +0300
commitc353fb0d4c932e4b8b561d31afc54b5a60df3d95 (patch)
tree640b2269ddf165d774d16b5d5d87bf6a73439f98 /tools/perf/scripts/python/exported-sql-viewer.py
parent05a8d7d4fadfc0ab65c6e8d81f8a02484d8db116 (diff)
downloadlinux-c353fb0d4c932e4b8b561d31afc54b5a60df3d95.tar.xz
mlxsw: spectrum_router: Take router lock in router notifier handler
For notifications that the router needs to handle, router lock is taken. Further, at least to determine whether an event is related to a tunnel underlay, router lock also needs to be taken. Due to this, the router lock is always taken for each unhandled event, and also for some handled events, even if they are not related to underlay. Thus each event implies at least one router lock, sometimes two. Instead of deferring the locking to the leaf handlers, take the lock in the router notifier handler always. This simplifies thinking about the locking state, and in some cases saves one lock cycle. Signed-off-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions