From: Gao feng Date: Mon, 3 Dec 2012 01:28:18 +0000 (+0800) Subject: cgroup: remove subsystem files when remounting cgroup X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~57^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7083d0378a1746f2b45729cae494c6b92e75d73f;p=pandora-kernel.git 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 Signed-off-by: Tejun Heo --- Reading git-diff-tree failed