diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-02-25 16:45:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-25 19:25:02 +0100 |
commit | ace4a267e89f280ef5504b29ea10581319c07630 (patch) | |
tree | 20ad36c7c541f70b36f9637410b1fb311cf98741 /tools | |
parent | net: sched: set dedicated tcf_walker flag when tp is empty (diff) | |
download | linux-ace4a267e89f280ef5504b29ea10581319c07630.tar.xz linux-ace4a267e89f280ef5504b29ea10581319c07630.zip |
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 <vladbu@mellanox.com>
Suggested-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions