cgroups.7: Rework discussion of writing to cgroup.type file

In particular, it is possible to write "threaded" to a
cgroup.type file if the current type is "domain threaded".
Previously, the text had implied that this was not possible.
Verified by experiment on Linux 4.15 and 4.19-rc.

Reported-by: Leah Hanson <lhanson@pivotal.io>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-10-04 22:22:31 +02:00
parent df0a41dfe3
commit 6c9aa5ad5f
1 changed files with 13 additions and 10 deletions

View File

@ -1408,24 +1408,27 @@ In other words, the only explicit transition that is possible is to convert a
cgroup to type cgroup to type
.IR threaded . .IR threaded .
.IP * .IP *
The string The effect of writing
.IR """threaded""" .IR """threaded"""
can be written only if the current value in depends on the current value in
.IR cgroup.type .IR cgroup.type ,
is one of the following as follows:
.RS .RS
.IP \(bu 3 .IP \(bu 3
.IR domain , .IR domain
to start the creation of a threaded subtree via or
.IR "domain threaded" :
start the creation of a threaded subtree
(whose root is the parent of this cgroup) via
the first of the pathways described above; the first of the pathways described above;
.IP \(bu .IP \(bu
.IR "domain\ invalid" , .IR "domain\ invalid" :
to convert one of the cgroups in a threaded subtree into a usable (i.e., convert one of the cgroups in a threaded subtree into a usable (i.e.,
.IR threaded ) .IR threaded )
state; state;
.IP \(bu .IP \(bu
.IR threaded , .IR threaded :
which has no effect (a "no-op"). no effect (a "no-op").
.RE .RE
.IP * .IP *
We can't write to a We can't write to a