From: Patrick McHardy <kaber@trash.net>
To: paulmck@linux.vnet.ibm.com, dipankar@in.ibm.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [RCU]: preemptible RCU: sparse annotations
Date: Wed, 30 Jan 2008 20:44:42 +0100 [thread overview]
Message-ID: <47A0D3AA.1010504@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Annotate rcu_read_lock/rcu_read_unlock for sparse.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 614 bytes --]
[RCU]: preemptible RCU: sparse annotations
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);
next reply other threads:[~2008-01-30 19:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 19:44 Patrick McHardy [this message]
2008-01-30 23:25 ` [RCU]: preemptible RCU: sparse annotations Paul E. McKenney
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=47A0D3AA.1010504@trash.net \
--to=kaber@trash.net \
--cc=dipankar@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox