Re: [PATCH v5 15/29] fs/resctrl: Add an architectural hook called for each mount
From: Reinette Chatre
Date: Tue Jun 03 2025 - 23:49:53 EST
Hi Tony,
On 5/21/25 3:50 PM, Tony Luck wrote:
> diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
> index 306afb50fd37..f8c9840ce7dc 100644
> --- a/arch/x86/kernel/cpu/resctrl/core.c
> +++ b/arch/x86/kernel/cpu/resctrl/core.c
> @@ -710,6 +710,15 @@ static int resctrl_arch_offline_cpu(unsigned int cpu)
> return 0;
> }
>
> +void resctrl_arch_pre_mount(void)
> +{
> + static atomic_t only_once;
Looks like the custom is to initialize with ATOMIC_INIT(0).
Reinette