Re: [PATCH v5 29/40] x86/resctrl: Claim get_{mon,ctrl}_domain_from_cpu() helpers for resctrl
From: Reinette Chatre
Date: Wed Oct 23 2024 - 19:02:56 EST
Hi James,
On 10/4/24 11:03 AM, James Morse wrote:
> diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h
> index 653d7cf41e64..bbce79190b13 100644
> --- a/include/linux/resctrl.h
> +++ b/include/linux/resctrl.h
> @@ -3,6 +3,7 @@
> #define _RESCTRL_H
>
> #include <linux/cacheinfo.h>
> +#include <linux/cpu.h>
> #include <linux/kernel.h>
> #include <linux/list.h>
> #include <linux/pid.h>
> @@ -397,6 +398,42 @@ static inline u32 resctrl_get_config_index(u32 closid,
> }
> }
>
> +/*
> + * Caller must hold the cpuhp read lock to prevent the struct rdt_domain being
> + * freed.
"prevent the struct rdt_domain from being freed."?
Reinette