diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-12-27 00:46:26 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-12-27 11:51:47 -0500 |
commit | c6ca57500c23d57a4ccec9874b6a3c99c297e1b5 (patch) | |
tree | 05de5a919fba42da5e537254b1d654ae1bec5b16 /kernel | |
parent | 1c6c3fad81787e8cb4c85ddfd573b0d8442fe630 (diff) |
cgroup: add sparse annotation to cgroup_iter_start() and cgroup_iter_end()
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 421557fcbfe4..c6bd67b3fcf6 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -2825,6 +2825,7 @@ static void cgroup_enable_task_cg_lists(void) | |||
2825 | } | 2825 | } |
2826 | 2826 | ||
2827 | void cgroup_iter_start(struct cgroup *cgrp, struct cgroup_iter *it) | 2827 | void cgroup_iter_start(struct cgroup *cgrp, struct cgroup_iter *it) |
2828 | __acquires(css_set_lock) | ||
2828 | { | 2829 | { |
2829 | /* | 2830 | /* |
2830 | * The first time anyone tries to iterate across a cgroup, | 2831 | * The first time anyone tries to iterate across a cgroup, |
@@ -2864,6 +2865,7 @@ struct task_struct *cgroup_iter_next(struct cgroup *cgrp, | |||
2864 | } | 2865 | } |
2865 | 2866 | ||
2866 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it) | 2867 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it) |
2868 | __releases(css_set_lock) | ||
2867 | { | 2869 | { |
2868 | read_unlock(&css_set_lock); | 2870 | read_unlock(&css_set_lock); |
2869 | } | 2871 | } |