From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Patrick McHardy <kaber@trash.net>
Cc: dipankar@in.ibm.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RCU]: preemptible RCU: sparse annotations
Date: Wed, 30 Jan 2008 15:25:28 -0800 [thread overview]
Message-ID: <20080130232528.GA18206@linux.vnet.ibm.com> (raw)
In-Reply-To: <47A0D3AA.1010504@trash.net>
On Wed, Jan 30, 2008 at 08:44:42PM +0100, Patrick McHardy wrote:
> Annotate rcu_read_lock/rcu_read_unlock for sparse.
>
>
> [RCU]: preemptible RCU: sparse annotations
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Patrick McHardy <kaber@trash.net>
>
> diff --git a/include/linux/rcupreempt.h b/include/linux/rcupreempt.h
> index ece8eb3..60c2a03 100644
> --- a/include/linux/rcupreempt.h
> +++ b/include/linux/rcupreempt.h
> @@ -46,8 +46,8 @@
> #define rcu_bh_qsctr_inc(cpu)
> #define call_rcu_bh(head, rcu) call_rcu(head, rcu)
>
> -extern void __rcu_read_lock(void);
> -extern void __rcu_read_unlock(void);
> +extern void __rcu_read_lock(void) __acquires(RCU);
> +extern void __rcu_read_unlock(void) __releases(RCU);
> extern int rcu_pending(int cpu);
> extern int rcu_needs_cpu(int cpu);
>
prev parent reply other threads:[~2008-01-30 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 19:44 [RCU]: preemptible RCU: sparse annotations Patrick McHardy
2008-01-30 23:25 ` 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=20080130232528.GA18206@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=dipankar@in.ibm.com \
--cc=kaber@trash.net \
--cc=linux-kernel@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.