[PATCH 2.{4,5}.x] mod_timer fix for sch_cbq.c

From: Vinay K Nallamothu (vinay-rc@naturesoft.net)
Date: Sat May 03 2003 - 09:16:19 EST


Hi,

sch_cbq.c: trivial {del,add}_timer to mod_timer conversions.

vinay

--- linux-2.5.68/net/sched/sch_cbq.c 2003-03-25 10:08:36.000000000 +0530
+++ linux-2.5.68-nvk/net/sched/sch_cbq.c 2003-05-03 19:29:08.000000000 +0530
@@ -1056,11 +1056,9 @@
                 sch->stats.overlimits++;
                 if (q->wd_expires && !netif_queue_stopped(sch->dev)) {
                         long delay = PSCHED_US2JIFFIE(q->wd_expires);
- del_timer(&q->wd_timer);
                         if (delay <= 0)
                                 delay = 1;
- q->wd_timer.expires = jiffies + delay;
- add_timer(&q->wd_timer);
+ mod_timer(&q->wd_timer, jiffies + delay);
                         sch->flags |= TCQ_F_THROTTLED;
                 }
         }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:18 EST