Re: [PATCH v3] cgroup/cpuset: fmeter_getrate() returns 0 when memory_pressure disabled
From: Michal Koutný
Date: Mon Feb 17 2025 - 07:51:51 EST
On Mon, Feb 17, 2025 at 07:15:00AM +0000, Jin Guojie <guojie.jin@xxxxxxxxx> wrote:
> In the current kernel, the variable cpuset_memory_pressure_enabled is
> not actually used。
This statement is weird, it's generally not true and not false without
further context.
> This patch modifies fmeter_getrate() to determine whether to return 0
> based on cpuset_memory_pressure_enabled.
>
> Signed-off-by: Jin Guojie <guojie.jin@xxxxxxxxx>
> Suggested-by: Michal Koutný <mkoutny@xxxxxxxx>
I'm not sure I'd still suggest this :-) but
Acked-by: Michal Koutný <mkoutny@xxxxxxxx>
> Suggested-by: Waiman Long <longman@xxxxxxxxxx>
> ---
> kernel/cgroup/cpuset-v1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Attachment:
signature.asc
Description: PGP signature