diff options
author | Tejun Heo <tj@kernel.org> | 2013-06-21 15:52:04 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-26 10:48:38 -0700 |
commit | a8ad805cfde00be8fe3b3dae8890996dbeb91e2c (patch) | |
tree | cfe59b30636f951244c748eaab000da68d20a159 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 14611e51a57df10240817d8ada510842faf0ec51 (diff) |
cgroup: fix RCU accesses around task->cgroups
There are several places in kernel/cgroup.c where task->cgroups is
accessed and modified without going through proper RCU accessors.
None is broken as they're all lock protected accesses; however, this
still triggers sparse RCU address space warnings.
* Consistently use task_css_set() for task->cgroups dereferencing.
* Use RCU_INIT_POINTER() to clear task->cgroups to &init_css_set on
exit.
* Remove unnecessary rcu_dereference_raw() from cset->subsys[]
dereference in cgroup_exit().
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions