[PATCH RFC tip/core/rcu 06/30] keys: __rcu annotations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Wednesday, July 14, 2010 - 1:09 pm

From: Arnd Bergmann <arnd@arndb.de>

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
---
 include/linux/cred.h |    2 +-
 include/linux/key.h  |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/linux/cred.h b/include/linux/cred.h
index 75c0fa8..94d2301 100644
--- a/include/linux/cred.h
+++ b/include/linux/cred.h
@@ -84,7 +84,7 @@ struct thread_group_cred {
 	atomic_t	usage;
 	pid_t		tgid;			/* thread group process ID */
 	spinlock_t	lock;
-	struct key	*session_keyring;	/* keyring inherited over fork */
+	struct key __rcu *session_keyring;	/* keyring inherited over fork */
 	struct key	*process_keyring;	/* keyring private to this process */
 	struct rcu_head	rcu;			/* RCU deletion hook */
 };
diff --git a/include/linux/key.h b/include/linux/key.h
index cd50dfa..3db0adc 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -178,8 +178,9 @@ struct key {
 	 */
 	union {
 		unsigned long		value;
+		void __rcu		*rcudata;
 		void			*data;
-		struct keyring_list	*subscriptions;
+		struct keyring_list __rcu *subscriptions;
 	} payload;
 };
 
-- 
1.7.0.6

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC tip/core/rcu 04/30] cgroups: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 05/30] credentials: rcu annotation, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 06/30] keys: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 07/30] nfs: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 08/30] net: __rcu annotations for ..., Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 09/30] perf_event: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 10/30] notifiers: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 11/30] radix-tree: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 0/30] RCU commits queued for 2.6.36/7, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 12/30] idr: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 13/30] input: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 15/30] kvm: add __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 16/30] kernel: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 17/30] net: __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 18/30] kvm: more __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 19/30] vhost: add __rcu annotations, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 23/30] rcu head remove init, Paul E. McKenney, (Wed Jul 14, 1:09 pm)
[PATCH RFC tip/core/rcu 26/30] rcu: simplify the usage of ..., Paul E. McKenney, (Wed Jul 14, 1:10 pm)
[PATCH RFC tip/core/rcu 29/30] rcu: add boot parameter to ..., Paul E. McKenney, (Wed Jul 14, 1:10 pm)
[PATCH RFC tip/core/rcu 30/30] rcu: improve kerneldoc for ..., Paul E. McKenney, (Wed Jul 14, 1:10 pm)
Re: [PATCH RFC tip/core/rcu 07/30] nfs: __rcu annotations, Trond Myklebust, (Wed Jul 14, 3:07 pm)