From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
To: davej@codemonkey.org.uk
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.{4,5}.x] mod_timer fix for sch_cbq.c
Date: 03 May 2003 19:46:19 +0530 [thread overview]
Message-ID: <1051971380.2018.128.camel@lima.royalchallenge.com> (raw)
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;
}
}
next reply other threads:[~2003-05-03 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-03 14:16 Vinay K Nallamothu [this message]
2003-05-03 14:53 ` [PATCH 2.{4,5}.x] mod_timer fix for sch_cbq.c David S. Miller
2003-05-04 1:04 ` jw schultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1051971380.2018.128.camel@lima.royalchallenge.com \
--to=vinay-rc@naturesoft.net \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox