From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 2.5.68] mod_timer fix for dst.c
Date: 03 May 2003 13:57:34 +0530 [thread overview]
Message-ID: <1051950454.1243.21.camel@lima.royalchallenge.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
Hi,
Small fix converting {del,add}_timer to mod_timer.
Applicable for 2.4.x also
vinay
[-- Attachment #2: dst.c.patch --]
[-- Type: text/plain, Size: 558 bytes --]
--- linux-2.5.68/net/core/dst.c 2003-03-25 10:08:35.000000000 +0530
+++ linux-2.5.68-mod/net/core/dst.c 2003-05-03 13:42:12.000000000 +0530
@@ -154,11 +154,9 @@
dst->next = dst_garbage_list;
dst_garbage_list = dst;
if (dst_gc_timer_inc > DST_GC_INC) {
- del_timer(&dst_gc_timer);
dst_gc_timer_inc = DST_GC_INC;
dst_gc_timer_expires = DST_GC_MIN;
- dst_gc_timer.expires = jiffies + dst_gc_timer_expires;
- add_timer(&dst_gc_timer);
+ mod_timer(&dst_gc_timer, jiffies + dst_gc_timer_expires);
}
spin_unlock_bh(&dst_lock);
}
next reply other threads:[~2003-05-03 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-03 8:27 Vinay K Nallamothu [this message]
2003-05-03 9:02 ` David S. Miller
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=1051950454.1243.21.camel@lima.royalchallenge.com \
--to=vinay-rc@naturesoft.net \
--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
all inboxes | Powered by JetHome®