[Devel] [PATCH] cgroup: fix fail path in cgroup_load_subsys()

Tejun Heo tj at kernel.org
Thu Dec 12 07:35:36 PST 2013


On Sat, Dec 07, 2013 at 11:58:05AM +0400, Vladimir Davydov wrote:
> We should not call cgroup_unload_subsys() if online_css() fails, because
> online_css() does not assign css to cgroup on failure, while
> offline_css() called from cgroup_unload_subsys() expects it is assigned.
> So let's call everything we need to rollback inline without involving
> cgroup_unload_subsys().
> 
> Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
> Cc: Tejun Heo <tj at kernel.org>
> Cc: Li Zefan <lizefan at huawei.com>

Applied to cgroup/for-3.13-fixes.

Thanks.

-- 
tejun



More information about the Devel mailing list