cgroup: add sparse annotation to cgroup_iter_start() and cgroup_iter_end()
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 27 Dec 2011 05:46:26 +0000 (07:46 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 27 Dec 2011 16:51:47 +0000 (08:51 -0800)
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>
kernel/cgroup.c

index 421557fcbfe403d525998ae25577c623f755228e..c6bd67b3fcf6e89ca8c04cb6c4939ef196252d64 100644 (file)
@@ -2825,6 +2825,7 @@ static void cgroup_enable_task_cg_lists(void)
 }
 
 void cgroup_iter_start(struct cgroup *cgrp, struct cgroup_iter *it)
+       __acquires(css_set_lock)
 {
        /*
         * The first time anyone tries to iterate across a cgroup,
@@ -2864,6 +2865,7 @@ struct task_struct *cgroup_iter_next(struct cgroup *cgrp,
 }
 
 void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it)
+       __releases(css_set_lock)
 {
        read_unlock(&css_set_lock);
 }