]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: do not use rcu in tc_dump_qdisc()
authorEric Dumazet <edumazet@google.com>
Tue, 11 Mar 2014 00:11:42 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 03:54:23 +0000 (23:54 -0400)
commitcf75b932b571b5a22f67f59e1835b11458d16d6c
tree8da1869274a4800b33ec0666668b9a474f34f3c6
parent4d7f9f1ac226c67685b03a664e3b2a69ef4332ae
pkt_sched: do not use rcu in tc_dump_qdisc()

Like all rtnetlink dump operations, we hold RTNL in tc_dump_qdisc(),
so we do not need to use rcu protection to protect list of netdevices.

This will allow preemption to occur, thus reducing latencies.
Following patch adds explicit cond_resched() calls.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c