public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.{4,5}.x] mod_timer fix for sch_cbq.c
@ 2003-05-03 14:16 Vinay K Nallamothu
  2003-05-03 14:53 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Vinay K Nallamothu @ 2003-05-03 14:16 UTC (permalink / raw)
  To: davej; +Cc: LKML

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;
 		}
 	}


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-04  0:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-03 14:16 [PATCH 2.{4,5}.x] mod_timer fix for sch_cbq.c Vinay K Nallamothu
2003-05-03 14:53 ` David S. Miller
2003-05-04  1:04   ` jw schultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox