lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <6d291e080807072016h5303b656h4633388db5bfc291@mail.gmail.com>
Date:	Mon, 7 Jul 2008 22:16:53 -0500
From:	"Stoyan Gaydarov" <stoyboyker@...il.com>
To:	davem@...emloft.net, kuznet@....inr.ac.ru, pekkas@...core.fi,
	jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...sh.net
Cc:	netdev@...r.kernel.org
Subject: [PATCH] round_jiffies in ipv4

This patch changes the timers to use round_jiffies() since they are
used for garbage collection.


Signed-off-by: Stoyan Gaydarov <stoyboyker@...il.com>

diff -uprN linux-2.6.26-rc9/net/ipv4/ipvs/ip_vs_lblc.c
devel/net/ipv4/ipvs/ip_vs_lblc.c
--- linux-2.6.26-rc9/net/ipv4/ipvs/ip_vs_lblc.c 2008-07-05
17:53:22.000000000 -0500
+++ devel/net/ipv4/ipvs/ip_vs_lblc.c    2008-07-07 22:05:04.000000000 -0500
@@ -364,7 +364,7 @@ static int ip_vs_lblc_init_svc(struct ip
         */
        setup_timer(&tbl->periodic_timer, ip_vs_lblc_check_expire,
                        (unsigned long)tbl);
-       tbl->periodic_timer.expires = jiffies+CHECK_EXPIRE_INTERVAL;
+       tbl->periodic_timer.expires =
round_jiffies(jiffies+CHECK_EXPIRE_INTERVAL);
        add_timer(&tbl->periodic_timer);

        return 0;
diff -uprN linux-2.6.26-rc9/net/ipv4/ipvs/ip_vs_lblcr.c
devel/net/ipv4/ipvs/ip_vs_lblcr.c
--- linux-2.6.26-rc9/net/ipv4/ipvs/ip_vs_lblcr.c        2008-07-05
17:53:22.000000000 -0500
+++ devel/net/ipv4/ipvs/ip_vs_lblcr.c   2008-07-07 22:03:51.000000000 -0500
@@ -548,7 +548,7 @@ static int ip_vs_lblcr_init_svc(struct i
         */
        setup_timer(&tbl->periodic_timer, ip_vs_lblcr_check_expire,
                        (unsigned long)tbl);
-       tbl->periodic_timer.expires = jiffies+CHECK_EXPIRE_INTERVAL;
+       tbl->periodic_timer.expires =
round_jiffies(jiffies+CHECK_EXPIRE_INTERVAL);
        add_timer(&tbl->periodic_timer);

        return 0;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ