diff options
author | 2012-12-01 00:21:28 +0800 | |
---|---|---|
committer | 2012-11-30 11:44:12 -0800 | |
commit | 879a3d9dbbde823ac77d39131e7a287f31b8296f (patch) | |
tree | 081a858a5d37325fc3210180c34c1f79efbdfbae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cgroup: warn about broken hierarchies only after css_online (diff) | |
download | linux-dev-879a3d9dbbde823ac77d39131e7a287f31b8296f.tar.xz linux-dev-879a3d9dbbde823ac77d39131e7a287f31b8296f.zip |
cgroup: use cgroup_addrm_files() in cgroup_clear_directory()
cgroup_clear_directory() incorrectly invokes cgroup_rm_file() on each
cftset of the target subsystems, which only removes the first file of
each set. This leaves dangling files after subsystems are removed
from a cgroup root via remount.
Use cgroup_addrm_files() to remove all files of target subsystems.
tj: Move cgroup_addrm_files() prototype decl upwards next to other
global declarations. Commit message updated.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions