Linux cgroups development
 help / color / mirror / Atom feed
* [PATCH] docs: cgroup-v2: mark memory.pressure and io.pressure as read-write
@ 2026-07-24  2:05 Tao Cui
  2026-07-24  9:42 ` Michal Koutný
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Cui @ 2026-07-24  2:05 UTC (permalink / raw)
  To: Tejun Heo, cgroups
  Cc: Johannes Weiner, Michal Koutný, Jonathan Corbet, Shuah Khan,
	linux-doc, linux-kernel, Tao Cui, cui.tao

From: Tao Cui <cuitao@kylinos.cn>

The cgroup-v2 documentation describes memory.pressure and io.pressure as
"read-only nested-keyed file", but both files accept trigger writes
(cgroup_memory_pressure_write / cgroup_io_pressure_write) and are therefore
read-write. cpu.pressure and irq.pressure are already documented as
read-write, so this also resolves an internal inconsistency.

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
---
 Documentation/admin-guide/cgroup-v2.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index f3a3e26854c2..c08ae18afea8 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -1930,7 +1930,7 @@ The following nested keys are defined.
 	is allowed unless memory.swap.max is set to 0.
 
   memory.pressure
-	A read-only nested-keyed file.
+	A read-write nested-keyed file.
 
 	Shows pressure stall information for memory. See
 	:ref:`Documentation/accounting/psi.rst <psi>` for details.
@@ -2190,7 +2190,7 @@ IO Interface Files
 	  8:16 rbps=2097152 wbps=max riops=max wiops=max
 
   io.pressure
-	A read-only nested-keyed file.
+	A read-write nested-keyed file.
 
 	Shows pressure stall information for IO. See
 	:ref:`Documentation/accounting/psi.rst <psi>` for details.
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: cgroup-v2: mark memory.pressure and io.pressure as read-write
  2026-07-24  2:05 [PATCH] docs: cgroup-v2: mark memory.pressure and io.pressure as read-write Tao Cui
@ 2026-07-24  9:42 ` Michal Koutný
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Koutný @ 2026-07-24  9:42 UTC (permalink / raw)
  To: Tao Cui
  Cc: Tejun Heo, cgroups, Johannes Weiner, Jonathan Corbet, Shuah Khan,
	linux-doc, linux-kernel, Tao Cui

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

On Fri, Jul 24, 2026 at 10:05:08AM +0800, Tao Cui <cui.tao@linux.dev> wrote:
> From: Tao Cui <cuitao@kylinos.cn>
> 
> The cgroup-v2 documentation describes memory.pressure and io.pressure as
> "read-only nested-keyed file", but both files accept trigger writes
> (cgroup_memory_pressure_write / cgroup_io_pressure_write) and are therefore
> read-write. cpu.pressure and irq.pressure are already documented as
> read-write, so this also resolves an internal inconsistency.
> 
> Signed-off-by: Tao Cui <cuitao@kylinos.cn>
> ---
>  Documentation/admin-guide/cgroup-v2.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Michal Koutný <mkoutny@suse.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-24  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  2:05 [PATCH] docs: cgroup-v2: mark memory.pressure and io.pressure as read-write Tao Cui
2026-07-24  9:42 ` Michal Koutný

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox