Re: [PATCH linux-next] sched/psi: avoid unnecessary resetting min update period when destroy trigger

From: Yang Yang
Date: Tue Apr 25 2023 - 23:23:09 EST


>On Mon, Apr 17, 2023 at 1:12 AM <yang.yang29@xxxxxxxxxx> wrote:
>>
>> From: Yang Yang <yang.yang19@xxxxxxxxxx>
>>
>> Psi_group's poll_min_period is determined by the min 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 destroying psi_trigger
>> not had the min windows size, since in this condition poll_min_period
>> will keep the same as before.
>
> Nice optimization.
>
>> Signed-off-by: Yang Yang <yang.yang29@xxxxxxxxxx>
> Acked-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>

Hi, would you please take a review?
Thanks!