rcu: Fix rcutorture mod_timer argument to delay one jiffy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, February 28, 2010 - 11:59 am

Gitweb:     http://git.kernel.org/linus/6155fec92e85f07d99e9746234496215443ffb0d
Commit:     6155fec92e85f07d99e9746234496215443ffb0d
Parent:     3acd9eb31c5f7eb97cb2009fa41472710fb4a10f
Author:     Paul E. McKenney <paulmck@linux.vnet.ibm.com>
AuthorDate: Mon Feb 22 17:05:04 2010 -0800
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Thu Feb 25 10:35:00 2010 +0100

    rcu: Fix rcutorture mod_timer argument to delay one jiffy
    
    The current "mod_timer(&t, 1)" potentially makes the timer fire
    immediately, change this to wait one jiffy.
    
    Signed-off-by: Dan Carpenter <error27@gmail.com>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: laijs@cn.fujitsu.com
    Cc: dipankar@in.ibm.com
    Cc: mathieu.desnoyers@polymtl.ca
    Cc: josh@joshtriplett.org
    Cc: dvhltc@us.ibm.com
    Cc: niv@us.ibm.com
    Cc: peterz@infradead.org
    Cc: rostedt@goodmis.org
    Cc: Valdis.Kletnieks@vt.edu
    Cc: dhowells@redhat.com
    LKML-Reference: <1266887105-1528-20-git-send-email-paulmck@linux.vnet.ibm.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/rcutorture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 5f43f30..258cdf0 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -853,7 +853,7 @@ rcu_torture_reader(void *arg)
 	do {
 		if (irqreader && cur_ops->irq_capable) {
 			if (!timer_pending(&t))
-				mod_timer(&t, 1);
+				mod_timer(&t, jiffies + 1);
 		}
 		idx = cur_ops->readlock();
 		completed = cur_ops->completed();
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rcu: Fix rcutorture mod_timer argument to delay one jiffy, Linux Kernel Mailing ..., (Sun Feb 28, 11:59 am)