diff options
| author | Paul Menage <[email protected]> | 2009-01-07 18:07:44 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-01-08 08:31:03 -0800 |
| commit | a47295e6bc42ad35f9c15ac66f598aa24debd4e2 (patch) | |
| tree | cb765e996ef35ae88e29d60796655d0d35e8cf5e /tools/perf/scripts/python | |
| parent | e7b80bb695a5b64c92e314838e083b2f3bdf29b2 (diff) | |
cgroups: make cgroup_path() RCU-safe
Fix races between /proc/sched_debug by freeing cgroup objects via an RCU
callback. Thus any cgroup reference obtained from an RCU-safe source will
remain valid during the RCU section. Since dentries are also RCU-safe,
this allows us to traverse up the tree safely.
Additionally, make cgroup_path() check for a NULL cgrp->dentry to avoid
trying to report a path for a partially-created cgroup.
[[email protected]: call deactive_super() in cgroup_diput()]
Signed-off-by: Paul Menage <[email protected]>
Reviewed-by: Li Zefan <[email protected]>
Tested-by: Li Zefan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions