diff options
author | 2014-05-13 12:10:59 -0400 | |
---|---|---|
committer | 2014-05-13 12:10:59 -0400 | |
commit | 0cee8b7786467907e12d1d8f872e6dc73bc95204 (patch) | |
tree | ef6db71c2426ce12ed2f558790d0efe76bffd4a7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'for-3.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup into for-3.16 (diff) | |
download | linux-dev-0cee8b7786467907e12d1d8f872e6dc73bc95204.tar.xz linux-dev-0cee8b7786467907e12d1d8f872e6dc73bc95204.zip |
cgroup: fix offlining child waiting in cgroup_subtree_control_write()
cgroup_subtree_control_write() waits for offline to complete
child-by-child before enabling a controller; however, it has a couple
bugs.
* It doesn't initialize the wait_queue_t. This can lead to infinite
hang on the following schedule() among other things.
* It forgets to pin the child before releasing cgroup_tree_mutex and
performing schedule(). The child may already be gone by the time it
wakes up and invokes finish_wait(). Pin the child being waited on.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions