pkt_sched: sch_htb: Break all htb_do_events() after 2 jiffies
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 13 Jan 2009 05:54:40 +0000 (21:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2009 05:54:40 +0000 (21:54 -0800)
commita73be040650463eacb95f83d2e6673ac57b4fc59
treeae3958ba9830448e18a0dedc82c8d7c031af2476
parentc08513471911cf33cb50249a7ff12848374f7263
pkt_sched: sch_htb: Break all htb_do_events() after 2 jiffies

Currently htb_do_events() breaks events recounting for a level after 2
jiffies, but there is no reason to repeat this for next levels and
increase delays even more (with softirqs disabled). htb_dequeue_tree()
can add to this too, btw. In such a case q->now time is invalid anyway.

Thanks to Patrick McHardy for spotting an error around earlier version
of this patch.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c