diff options
author | Kees Cook <keescook@chromium.org> | 2011-12-14 14:39:26 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-15 08:21:59 +0100 |
commit | abd63bc3a0f65ae9d85bc3b1bb067d3e3c2b2cc2 (patch) | |
tree | 5c40dd25121062a186d203fb9343940de740be74 /include | |
parent | 6a54aebf6978e9f296a4d3da3e40af425163c22e (diff) | |
download | linux-abd63bc3a0f65ae9d85bc3b1bb067d3e3c2b2cc2.tar.gz linux-abd63bc3a0f65ae9d85bc3b1bb067d3e3c2b2cc2.tar.bz2 linux-abd63bc3a0f65ae9d85bc3b1bb067d3e3c2b2cc2.zip |
sched: Mark parent and real_parent as __rcu
The parent and real_parent pointers should be considered __rcu,
since they should be held under either tasklist_lock or
rcu_read_lock.
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Link: http://lkml.kernel.org/r/20111214223925.GA27578@www.outflux.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index cc8c6206657f..5ef09012a629 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1330,8 +1330,8 @@ struct task_struct { * older sibling, respectively. (p->father can be replaced with * p->real_parent->pid) */ - struct task_struct *real_parent; /* real parent process */ - struct task_struct *parent; /* recipient of SIGCHLD, wait4() reports */ + struct task_struct __rcu *real_parent; /* real parent process */ + struct task_struct __rcu *parent; /* recipient of SIGCHLD, wait4() reports */ /* * children/sibling forms the list of my natural children */ |