All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [patch] rcutorture: mod_timer() takes an absolute time
Date: Mon, 22 Feb 2010 17:57:08 +0000	[thread overview]
Message-ID: <20100222175708.GI6748@linux.vnet.ibm.com> (raw)
In-Reply-To: <20100222125304.GA5416@bicker>

On Mon, Feb 22, 2010 at 04:10:00PM +0300, Dan Carpenter wrote:
> Hi Paul,
> 
> I was inspired to write a smatch check based on:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h¸57df1acc634b18db1db2a40864af985100266e
> 
> I compiled it and modprobed the resulting module...  Is this correct,
> or did you intend for the timer to trigger right away?

Excellent catch, Dan!  Applied.

							Thanx, Paul

> Signed-off-by: Dan Carpenter <error27@gmail.com>
> 
> diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
> index 9bb5217..1970f61 100644
> --- a/kernel/rcutorture.c
> +++ b/kernel/rcutorture.c
> @@ -798,7 +798,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 kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-02-22 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 13:10 [patch] rcutorture: mod_timer() takes an absolute time Dan Carpenter
2010-02-22 17:57 ` Paul E. McKenney [this message]

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=20100222175708.GI6748@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.