diff options
| author | 2009-01-07 18:07:36 -0800 | |
|---|---|---|
| committer | 2009-01-08 08:31:02 -0800 | |
| commit | b12b533fa523e94e0cc9dc23274ae4f9439f1313 (patch) | |
| tree | 00a08a34388e835ae3103a6f00c96129d3fa59a4 /tools/lib/python/kdoc/python_version.py | |
| parent | memcg: fix a typo in Kconfig (diff) | |
cgroups: add lock for child->cgroups in cgroup_post_fork()
When cgroup_post_fork() is called, child is seen by find_task_by_vpid(),
so child->cgroups maybe be changed, It'll incorrect.
child->cgroups<old>'s refcnt is decreased
child->cgroups<new>'s refcnt is increased
but child->cg_list is added to child->cgroups<old>'s list.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Reviewed-by: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
