Explorar o código

credentials: rcu annotation

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Arnd Bergmann %!s(int64=15) %!d(string=hai) anos
pai
achega
1b0ba1c903
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      include/linux/sched.h

+ 2 - 2
include/linux/sched.h

@@ -1288,9 +1288,9 @@ struct task_struct {
 	struct list_head cpu_timers[3];
 	struct list_head cpu_timers[3];
 
 
 /* process credentials */
 /* process credentials */
-	const struct cred *real_cred;	/* objective and real subjective task
+	const struct cred __rcu *real_cred; /* objective and real subjective task
 					 * credentials (COW) */
 					 * credentials (COW) */
-	const struct cred *cred;	/* effective (overridable) subjective task
+	const struct cred __rcu *cred;	/* effective (overridable) subjective task
 					 * credentials (COW) */
 					 * credentials (COW) */
 	struct mutex cred_guard_mutex;	/* guard against foreign influences on
 	struct mutex cred_guard_mutex;	/* guard against foreign influences on
 					 * credential calculations
 					 * credential calculations