All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	David Miller <davem@davemloft.net>
Subject: Re: PM / Wakeup: remove useless synchronize_rcu() call
Date: Wed, 11 May 2011 13:47:43 -0700	[thread overview]
Message-ID: <20110511204743.GD2258@linux.vnet.ibm.com> (raw)
In-Reply-To: <1305144959.3232.5.camel@edumazet-laptop>

On Wed, May 11, 2011 at 10:15:59PM +0200, Eric Dumazet wrote:
> wakeup_source_add() adds an item into wakeup_sources list.
> 
> There is no need to call synchronize_rcu() at this point.
> 
> Its only needed in wakeup_source_remove()
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
> CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

Reviewed-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

> CC: David Miller <davem@davemloft.net>,
> CC: Greg Kroah-Hartman <gregkh@suse.de>
> ---
>  drivers/base/power/wakeup.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
> index abbbd33..84f7c7d 100644
> --- a/drivers/base/power/wakeup.c
> +++ b/drivers/base/power/wakeup.c
> @@ -110,7 +110,6 @@ void wakeup_source_add(struct wakeup_source *ws)
>  	spin_lock_irq(&events_lock);
>  	list_add_rcu(&ws->entry, &wakeup_sources);
>  	spin_unlock_irq(&events_lock);
> -	synchronize_rcu();
>  }
>  EXPORT_SYMBOL_GPL(wakeup_source_add);
> 
> 
> 

      parent reply	other threads:[~2011-05-11 20:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 20:15 PM / Wakeup: remove useless synchronize_rcu() call Eric Dumazet
2011-05-11 20:43 ` Rafael J. Wysocki
2011-05-11 20:47 ` 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=20110511204743.GD2258@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    /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.