aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVlad Buslov <[email protected]>2019-02-25 17:45:44 +0200
committerDavid S. Miller <[email protected]>2019-02-25 10:25:02 -0800
commitace4a267e89f280ef5504b29ea10581319c07630 (patch)
tree20ad36c7c541f70b36f9637410b1fb311cf98741 /tools/perf/scripts/python
parent6676d5e416eecaf4e823a2c3903aa132ffc2ede0 (diff)
net: sched: don't release block->lock when dumping chains
Function tc_dump_chain() obtains and releases block->lock on each iteration of its inner loop that dumps all chains on block. Outputting chain template info is fast operation so locking/unlocking mutex multiple times is an overhead when lock is highly contested. Modify tc_dump_chain() to only obtain block->lock once and dump all chains without releasing it. Signed-off-by: Vlad Buslov <[email protected]> Suggested-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions