Re: [PATCH 1/1] sched/psi: avoid resetting the min update period when it is unnecessary

From: Peter Zijlstra
Date: Mon May 15 2023 - 04:31:41 EST


On Sun, May 14, 2023 at 09:33:38AM -0700, Suren Baghdasaryan wrote:
> From: Yang Yang <yang.yang29@xxxxxxxxxx>
>
> Psi_group's poll_min_period is determined by the minimum window size of
> psi_trigger when creating new triggers. While destroying a psi_trigger,
> there is no need to reset poll_min_period if the psi_trigger being
> destroyed did not have the minimum window size, since in this condition
> poll_min_period will remain the same as before.
>
> Signed-off-by: Yang Yang <yang.yang29@xxxxxxxxxx>
> Acked-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>
> ---
> rebase of https://lore.kernel.org/all/202305121642367753446@xxxxxxxxxx/
> over git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core branch

Thanks!