Re: [PATCH] mm/damon: remove __read_mostly from memory_idle_ms_percentiles
From: SeongJae Park
Date: Fri Jan 30 2026 - 10:39:24 EST
On Fri, 30 Jan 2026 03:56:03 -0500 lirongqing <lirongqing@xxxxxxxxx> wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> The 'memory_idle_ms_percentiles' array in DAMON_STAT is updated
> frequently by the kernel to reflect the latest idle time statistics.
> Marking it as '__read_mostly' is inappropriate for data that is
> regularly written to, as it can lead to cache pollution in the
> read-mostly section.
>
> Remove the '__read_mostly' annotation to accurately reflect the
> variable's usage pattern.
Nice catch, thank you Li!
>
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]