[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y9or5PkdXj/D94fR@debian.me>
Date: Wed, 1 Feb 2023 16:07:48 +0700
From: Bagas Sanjaya <bagasdotme@...il.com>
To: Hou Tao <houtao@...weicloud.com>, linux-block@...r.kernel.org
Cc: Bart Van Assche <bvanassche@....org>, Jan Kara <jack@...e.cz>,
Jens Axboe <axboe@...nel.dk>, cgroups@...r.kernel.org,
Tejun Heo <tj@...nel.org>, Zefan Li <lizefan.x@...edance.com>,
Johannes Weiner <hannes@...xchg.org>,
Jonathan Corbet <corbet@....net>, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, houtao1@...wei.com
Subject: Re: [PATCH] blk-ioprio: Introduce promote-to-rt policy
On Wed, Feb 01, 2023 at 12:52:27PM +0800, Hou Tao wrote:
> The following numerical values are associated with the I/O priority policies:
>
> -+-------------+---+
> -| no-change | 0 |
> -+-------------+---+
> -| none-to-rt | 1 |
> -+-------------+---+
> -| rt-to-be | 2 |
> -+-------------+---+
> -| all-to-idle | 3 |
> -+-------------+---+
> +
> ++---------------+---------+-----+
> +| policy | inst | num |
> ++---------------+---------+-----+
> +| no-change | demote | 0 |
> ++---------------+---------+-----+
> +| none-to-rt | demote | 1 |
> ++---------------+---------+-----+
> +| rt-to-be | demote | 2 |
> ++---------------+---------+-----+
> +| idle | demote | 3 |
> ++---------------+---------+-----+
> +| promote-to-rt | promote | 1 |
> ++---------------+---------+-----+
>
The first row should have been header row:
---- >8 ----
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index e0b9f73ef62a9e..55f9b579716564 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -2048,7 +2048,7 @@ The following numerical values are associated with the I/O priority policies:
+---------------+---------+-----+
| policy | inst | num |
-+---------------+---------+-----+
++===============+=========+=====+
| no-change | demote | 0 |
+---------------+---------+-----+
| none-to-rt | demote | 1 |
> @@ -2064,9 +2074,13 @@ The numerical value that corresponds to each I/O priority class is as follows:
>
> The algorithm to set the I/O priority class for a request is as follows:
>
> -- Translate the I/O priority class policy into a number.
> -- Change the request I/O priority class into the maximum of the I/O priority
> - class policy number and the numerical I/O priority class.
> +-- Translate the I/O priority class policy into an instruction and a number
> +-- If the instruction is demotion, change the request I/O priority class
> +- into the maximum of the I/O priority class policy number and the numerical
> +- I/O priority class.
> +-- If the instruction is promotion, change the request I/O priority class
> +- into the minimum of the I/O priority class policy number and the numerical
> +- I/O priority class.
>
Remove the excessive bullet list marker or the list above become paragraph
instead:
---- >8 ----
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 55f9b579716564..c3f16386c47bdf 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -2074,12 +2074,12 @@ The numerical value that corresponds to each I/O priority class is as follows:
The algorithm to set the I/O priority class for a request is as follows:
--- Translate the I/O priority class policy into an instruction and a number
--- If the instruction is demotion, change the request I/O priority class
-- into the maximum of the I/O priority class policy number and the numerical
-- I/O priority class.
--- If the instruction is promotion, change the request I/O priority class
-- into the minimum of the I/O priority class policy number and the numerical
+- Translate the I/O priority class policy into an instruction-number pair.
+- If the instruction is demotion, change the request I/O priority class
+ into the maximum of the I/O priority class policy number and the numerical
+ I/O priority class.
+- If the instruction is promotion, change the request I/O priority class
+ into the minimum of the I/O priority class policy number and the numerical
- I/O priority class.
PID
Thanks.
--
An old man doll... just what I always wanted! - Clara
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists