diff options
author | Li Zefan <lizefan@huawei.com> | 2013-07-31 04:16:40 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-31 06:20:18 -0400 |
commit | 2a4ac63333584b2791986cf2270f5ba9a4b97606 (patch) | |
tree | 26a5bf5f425c89e9db99a60778e6302b9c7acb7f | |
parent | 0b9e6965add0701e5cbf56d5bab6d9181e948359 (diff) |
cgroup: remove sparse tags from offline_css()
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>
-rw-r--r-- | kernel/cgroup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 345fac8e4fba..41b559f51502 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -4214,7 +4214,7 @@ static void init_cgroup_css(struct cgroup_subsys_state *css, | |||
4214 | INIT_WORK(&css->dput_work, css_dput_fn); | 4214 | INIT_WORK(&css->dput_work, css_dput_fn); |
4215 | } | 4215 | } |
4216 | 4216 | ||
4217 | /* invoke ->post_create() on a new CSS and mark it online if successful */ | 4217 | /* invoke ->css_online() on a new CSS and mark it online if successful */ |
4218 | static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp) | 4218 | static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp) |
4219 | { | 4219 | { |
4220 | int ret = 0; | 4220 | int ret = 0; |
@@ -4228,9 +4228,8 @@ static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp) | |||
4228 | return ret; | 4228 | return ret; |
4229 | } | 4229 | } |
4230 | 4230 | ||
4231 | /* if the CSS is online, invoke ->pre_destory() on it and mark it offline */ | 4231 | /* if the CSS is online, invoke ->css_offline() on it and mark it offline */ |
4232 | static void offline_css(struct cgroup_subsys *ss, struct cgroup *cgrp) | 4232 | static void offline_css(struct cgroup_subsys *ss, struct cgroup *cgrp) |
4233 | __releases(&cgroup_mutex) __acquires(&cgroup_mutex) | ||
4234 | { | 4233 | { |
4235 | struct cgroup_subsys_state *css = cgrp->subsys[ss->subsys_id]; | 4234 | struct cgroup_subsys_state *css = cgrp->subsys[ss->subsys_id]; |
4236 | 4235 | ||