diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-12-03 09:28:18 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-12-03 08:33:11 -0800 |
commit | 7083d0378a1746f2b45729cae494c6b92e75d73f (patch) | |
tree | bc2a732ffe1e9b4337a55b3fb7cc215a27159053 /Documentation | |
parent | 879a3d9dbbde823ac77d39131e7a287f31b8296f (diff) | |
download | op-kernel-dev-7083d0378a1746f2b45729cae494c6b92e75d73f.zip op-kernel-dev-7083d0378a1746f2b45729cae494c6b92e75d73f.tar.gz |
cgroup: remove subsystem files when remounting cgroup
cgroup_clear_directroy is called by cgroup_d_remove_dir
and cgroup_remount.
when we call cgroup_remount to remount the cgroup,the subsystem
may be unlinked from cgroupfs_root->subsys_list in rebind_subsystem,this
subsystem's files will not be removed in cgroup_clear_directroy.
And the system will panic when we try to access these files.
this patch removes subsystems's files before rebind_subsystems,
if rebind_subsystems failed, repopulate these removed files.
With help from Tejun.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions