From 6c9aa5ad5f588594062100e832ef06d17a49187d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 4 Oct 2018 22:22:31 +0200 Subject: [PATCH] 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 Signed-off-by: Michael Kerrisk --- man7/cgroups.7 | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/man7/cgroups.7 b/man7/cgroups.7 index 3552cafa1..8e106d8e7 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -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