• M
    sch_htb: fix "too many events" situation · 8f3ea33a
    Martin Devera 提交于
    HTB is event driven algorithm and part of its work is to apply
    scheduled events at proper times. It tried to defend itself from
    livelock by processing only limited number of events per dequeue.
    Because of faster computers some users already hit this hardcoded
    limit.
    
    This patch limits processing up to 2 jiffies (why not 1 jiffie ?
    because it might stop prematurely when only fraction of jiffie
    remains).
    Signed-off-by: NMartin Devera <devik@cdi.cz>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    8f3ea33a
sch_htb.c 42.7 KB