patch-2.4.22 linux-2.4.22/net/sched/sch_csz.c

Next file: linux-2.4.22/net/sched/sch_dsmark.c
Previous file: linux-2.4.22/net/sched/sch_cbq.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/sched/sch_csz.c linux-2.4.22/net/sched/sch_csz.c
@@ -708,11 +708,9 @@
 	 */
 	if (q->wd_expires) {
 		unsigned 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->stats.overlimits++;
 	}
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)