[RFC PATCH] cgroup: remove redundant cleanup in css_create

2016-05-13 Thread Wenwei Tao
From: Wenwei Tao When create css failed, before call css_free_rcu_fn, we remove the css id and exit the percpu_ref, but we will do these again in css_free_work_fn, so they are redundant. Especially the css id, that would cause problem if we remove it twice, since it may be

[RFC PATCH] cgroup: remove redundant cleanup in css_create

2016-05-13 Thread Wenwei Tao
From: Wenwei Tao When create css failed, before call css_free_rcu_fn, we remove the css id and exit the percpu_ref, but we will do these again in css_free_work_fn, so they are redundant. Especially the css id, that would cause problem if we remove it twice, since it may be assigned to another