]> Pileus Git - ~andy/linux/commitdiff
cgroup: remove sparse tags from offline_css()
authorLi Zefan <lizefan@huawei.com>
Wed, 31 Jul 2013 08:16:40 +0000 (16:16 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 31 Jul 2013 10:20:18 +0000 (06:20 -0400)
This should have been removed in commit d7eeac1913ff
("cgroup: hold cgroup_mutex before calling css_offline").

While at it, update the comments.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c

index 345fac8e4fba9e814d5a5137f614d09271055fb3..41b559f515026a1754ecee295c6542b668f86e35 100644 (file)
@@ -4214,7 +4214,7 @@ static void init_cgroup_css(struct cgroup_subsys_state *css,
        INIT_WORK(&css->dput_work, css_dput_fn);
 }
 
-/* invoke ->post_create() on a new CSS and mark it online if successful */
+/* invoke ->css_online() on a new CSS and mark it online if successful */
 static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp)
 {
        int ret = 0;
@@ -4228,9 +4228,8 @@ static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp)
        return ret;
 }
 
-/* if the CSS is online, invoke ->pre_destory() on it and mark it offline */
+/* if the CSS is online, invoke ->css_offline() on it and mark it offline */
 static void offline_css(struct cgroup_subsys *ss, struct cgroup *cgrp)
-       __releases(&cgroup_mutex) __acquires(&cgroup_mutex)
 {
        struct cgroup_subsys_state *css = cgrp->subsys[ss->subsys_id];