Re: [PATCH] mm/damon/core: preserve deadlines when tuned intervals are unchanged
From: Enze Li
Date: Fri Dec 04 2026 - 02:57:28 EST
On 12/4/26 01:47, Aveline Noir wrote:
> kdamond_tune_intervals() calls damon_set_attrs() even when clamping or
> rounding leaves the sampling and aggregation intervals unchanged. This
> restarts the ops update and DAMOS apply deadlines. Repeated same-value
> tuning can keep deferring longer update and apply intervals.
>
> Return early when both intervals are unchanged.
>
> Fixes: f04b0fedbe71 ("mm/damon/core: implement intervals auto-tuning")
> Signed-off-by: Aveline Noir <jm5905938@xxxxxxxxx>
Thanks for finding and fixing this, Aveline.
Reviewed-by: Enze Li <lienze@xxxxxxxxxx>
Thanks,
Enze