]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: add cond_resched() to class and qdisc dump
authorEric Dumazet <edumazet@google.com>
Tue, 11 Mar 2014 00:11:43 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 03:54:23 +0000 (23:54 -0400)
commit29d1af7c2718032f889adc05040d1e9a00ab5aa0
tree64becbfd442aed1f89f4058609eaa042c8e6f417
parentf697f607664fcccb693f8ffe7a63863aed033308
pkt_sched: add cond_resched() to class and qdisc dump

We have seen delays of more than 50ms in class or qdisc dumps, in case
device is under high TX stress, even with the prior 4KB per skb limit.

Add cond_resched() to give a chance to higher prio tasks to get cpu.

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