Commit f8e3e751 authored by Vinay K. Nallamothu's avatar Vinay K. Nallamothu Committed by David S. Miller

[PKT_SCHED]: Use mod_timer in sch_csz.c

parent 27571339
...@@ -708,11 +708,9 @@ csz_dequeue(struct Qdisc* sch) ...@@ -708,11 +708,9 @@ csz_dequeue(struct Qdisc* sch)
*/ */
if (q->wd_expires) { if (q->wd_expires) {
unsigned long delay = PSCHED_US2JIFFIE(q->wd_expires); unsigned long delay = PSCHED_US2JIFFIE(q->wd_expires);
del_timer(&q->wd_timer);
if (delay == 0) if (delay == 0)
delay = 1; delay = 1;
q->wd_timer.expires = jiffies + delay; mod_timer(&q->wd_timer, jiffies + delay);
add_timer(&q->wd_timer);
sch->stats.overlimits++; sch->stats.overlimits++;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment