diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-02-22 20:05:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-25 04:35:00 -0500 |
commit | 6155fec92e85f07d99e9746234496215443ffb0d (patch) | |
tree | aa0eb0807afd8ad2bcf8632c999d74a47fc30d59 | |
parent | 3acd9eb31c5f7eb97cb2009fa41472710fb4a10f (diff) |
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>
-rw-r--r-- | kernel/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 5f43f30fcd1d..258cdf0a91eb 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -853,7 +853,7 @@ rcu_torture_reader(void *arg) | |||
853 | do { | 853 | do { |
854 | if (irqreader && cur_ops->irq_capable) { | 854 | if (irqreader && cur_ops->irq_capable) { |
855 | if (!timer_pending(&t)) | 855 | if (!timer_pending(&t)) |
856 | mod_timer(&t, 1); | 856 | mod_timer(&t, jiffies + 1); |
857 | } | 857 | } |
858 | idx = cur_ops->readlock(); | 858 | idx = cur_ops->readlock(); |
859 | completed = cur_ops->completed(); | 859 | completed = cur_ops->completed(); |