cgroup: Fix incorrect css_set_rwsem reference in comment
PATCH 1/1 cgroup: Fix incorrect css_set_rwsem reference in comment
Since commit f0d9a5f17575 ("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 Waiman Long <[email protected]>
--- include/linux/cgroup-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cgroup-defs.h +1 -1
@@ -238,7 +238,7 @@ struct css_set {* Lists running through all tasks using this cgroup group. * mg_tasks lists tasks which belong to this cset but are in the * 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. */ struct list_head tasks;
Signature · 1 line
2.39.3
Quoted 7 lines · Waiman Long
Since commit
f0d9a5f17575("cgroup: makecss_set_rwsema spinlock and rename it tocss_set_lock"),css_set_rwsemhas been replaced bycss_set_lock. That commit, however, missed thecss_set_rwsemreference ininclude/linux/cgroup-defs.h. Fix that by changing it tocss_set_lockas well.Signed-off-by Waiman Long <[email protected]>
Applied to cgroup/for-6.6-fixes.
Thanks.
Signature · 1 line
tejun