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
.IR threaded .
.IP *
The string
The effect of writing
.IR """threaded"""
can be written only if the current value in
.IR cgroup.type
is one of the following
depends on the current value in
.IR cgroup.type ,
as follows:
.RS
.IP \(bu 3
.IR domain ,
to start the creation of a threaded subtree via
.IR domain
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;
.IP \(bu
.IR "domain\ invalid" ,
to convert one of the cgroups in a threaded subtree into a usable (i.e.,
.IR "domain\ invalid" :
convert one of the cgroups in a threaded subtree into a usable (i.e.,
.IR threaded )
state;
.IP \(bu
.IR threaded ,
which has no effect (a "no-op").
.IR threaded :
no effect (a "no-op").
.RE
.IP *
We can't write to a