Commit 13cc9ee8 authored by Waiman Long's avatar Waiman Long Committed by Tejun Heo

cgroup: Fix incorrect css_set_rwsem reference in comment

Since commit f0d9a5f1 ("cgroup: make css_set_rwsem a spinlock
and rename it to css_set_lock"), css_set_rwsem has been replaced by
css_set_lock. That commit, however, missed the css_set_rwsem reference
in include/linux/cgroup-defs.h. Fix that by changing it to css_set_lock
as well.
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 1ca0b605
...@@ -238,7 +238,7 @@ struct css_set { ...@@ -238,7 +238,7 @@ struct css_set {
* Lists running through all tasks using this cgroup group. * Lists running through all tasks using this cgroup group.
* mg_tasks lists tasks which belong to this cset but are in the * mg_tasks lists tasks which belong to this cset but are in the
* process of being migrated out or in. Protected by * process of being migrated out or in. Protected by
* css_set_rwsem, but, during migration, once tasks are moved to * css_set_lock, but, during migration, once tasks are moved to
* mg_tasks, it can be read safely while holding cgroup_mutex. * mg_tasks, it can be read safely while holding cgroup_mutex.
*/ */
struct list_head tasks; struct list_head tasks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment