diff options
author | 2013-01-21 18:18:33 +0800 | |
---|---|---|
committer | 2013-01-22 16:29:07 -0800 | |
commit | 2739d3cce9816805fe26774fea2527d5b16e924d (patch) | |
tree | de9fa4a5d6090835a551cea82c09a146d391f37e /tools/perf/scripts/python/check-perf-trace.py | |
parent | cgroup: remove synchronize_rcu() from rebind_subsystems() (diff) | |
download | linux-dev-2739d3cce9816805fe26774fea2527d5b16e924d.tar.xz linux-dev-2739d3cce9816805fe26774fea2527d5b16e924d.zip |
cgroup: fix bogus kernel warnings when cgroup_create() failed
If cgroup_create() failed and cgroup_destroy_locked() is called to
do cleanup, we'll see a bunch of warnings:
cgroup_addrm_files: failed to remove 2MB.limit_in_bytes, err=-2
cgroup_addrm_files: failed to remove 2MB.usage_in_bytes, err=-2
cgroup_addrm_files: failed to remove 2MB.max_usage_in_bytes, err=-2
cgroup_addrm_files: failed to remove 2MB.failcnt, err=-2
cgroup_addrm_files: failed to remove prioidx, err=-2
cgroup_addrm_files: failed to remove ifpriomap, err=-2
...
We failed to remove those files, because cgroup_create() has failed
before creating those cgroup files.
To fix this, we simply don't warn if cgroup_rm_file() can't find the
cft entry.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions