[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1324964786-19052-2-git-send-email-kirill@shutemov.name>
Date: Tue, 27 Dec 2011 07:46:26 +0200
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: cgroups@...r.kernel.org
Cc: containers@...ts.linux-foundation.org,
Li Zefan <lizf@...fujitsu.com>, Tejun Heo <tj@...nel.org>,
linux-kernel@...r.kernel.org, Paul Menage <paul@...lmenage.org>,
"Kirill A. Shutemov" <kirill@...temov.name>
Subject: [PATCH 2/2] cgroup: add sparse annotation to cgroup_iter_start() and cgroup_iter_end()
From: "Kirill A. Shutemov" <kirill@...temov.name>
Signed-off-by: Kirill A. Shutemov <kirill@...temov.name>
---
kernel/cgroup.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 98990dd..cbbc61d 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2854,6 +2854,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,
@@ -2893,6 +2894,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);
}
--
1.7.7.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists