Skip to contentSkip to conversation

Docs/cgroup: update the cgroup-v1 docs

PATCH Applied Hui Su 2 participants 2 messages Nov 2, 2020 – Nov 25, 2020

Subsystems (2)
lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 Docs/cgroup: update the cgroup-v1 docs

Since 'commit 69d0206c793a ("cgroup: bring some sanity to naming around cg_cgroup_link")', 'cg_cgroup_link' has been changed to 'cgrp_cset_link'.
so as its element 'cgrp_link_list' and 'cg_link_list'.

Since commit 47cfcd092245 ("cgroup: kill cgroup_[un]lock()"), cgroup_lock/cgroup_unlock have been killed.

So update the cgroup-v1 Docs.

---
 Documentation/admin-guide/cgroup-v1/cgroups.rst | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
Documentation/admin-guide/cgroup-v1/cgroups.rst +5 -8
index b0688011ed06..c28316a7dd28 100644
@@ -270,10 +270,10 @@ css_set is allocated. The appropriate existing css_set is located by
 looking into a hash table.
 
 To allow access from a cgroup to the css_sets (and hence tasks)
-that comprise it, a set of cg_cgroup_link objects form a lattice;
-each cg_cgroup_link is linked into a list of cg_cgroup_links for
-a single cgroup on its cgrp_link_list field, and a list of
-cg_cgroup_links for a single css_set on its cg_link_list.
+that comprise it, a set of cgrp_cset_link objects form a lattice;
+each cgrp_cset_link is linked into a list of cgrp_cset_links for
+a single cgroup on its cset_link field, and a list of
+cgrp_cset_links for a single css_set on its cgrp_link.
 
 Thus the set of tasks in a cgroup can be listed by iterating over
 each css_set that references the cgroup, and sub-iterating over
@@ -523,10 +523,7 @@ cgroup. It may also be taken to prevent cgroups from being
 modified, but more specific locks may be more appropriate in that
 situation.
 
-See kernel/cgroup.c for more details.
-
-Subsystems can take/release the cgroup_mutex via the functions
-cgroup_lock()/cgroup_unlock().
+See kernel/cgroup/cgroup.c for more details.
 
 Accessing a task's cgroup pointer may be done in the following ways:
 - while holding cgroup_mutex
Signature · 1 line
2.29.0
maintainer Applied
#1 lore raw
Quoted 11 lines · Hui Su

Since 'commit 69d0206c793a ("cgroup: bring some sanity to naming around cg_cgroup_link")', 'cg_cgroup_link' has been changed to 'cgrp_cset_link'.
so as its element 'cgrp_link_list' and 'cg_link_list'.

Since commit 47cfcd092245 ("cgroup: kill cgroup_[un]lock()"), cgroup_lock/cgroup_unlock have been killed.

So update the cgroup-v1 Docs.

Applied to cgroup/for-5.10-fixes.

Thanks.

Signature · 1 line
tejun