mirror-linux/fs/resctrl
Tony Luck d0891647fb fs/resctrl: Move RMID initialization to first mount
L3 monitor features are enumerated during resctrl initialization and
rmid_ptrs[] that tracks all RMIDs and depends on the number of supported
RMIDs is allocated during this time.

Telemetry monitor features are enumerated during first resctrl mount and
may support a different number of RMIDs compared to L3 monitor features.

Delay allocation and initialization of rmid_ptrs[] until first mount.
Since the number of RMIDs cannot change on later mounts, keep the same set of
rmid_ptrs[] until resctrl_exit(). This is required because the limbo handler
keeps running after resctrl is unmounted and needs to access rmid_ptrs[]
as it keeps tracking busy RMIDs after unmount.

Rename routines to match what they now do:
dom_data_init() -> setup_rmid_lru_list()
dom_data_exit() -> free_rmid_lru_list()

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
2026-01-10 11:46:48 +01:00
..
Kconfig
Makefile
ctrlmondata.c fs/resctrl: Emphasize that L3 monitoring resource is required for summing domains 2026-01-09 16:37:07 +01:00
internal.h fs/resctrl: Move RMID initialization to first mount 2026-01-10 11:46:48 +01:00
monitor.c fs/resctrl: Move RMID initialization to first mount 2026-01-10 11:46:48 +01:00
monitor_trace.h
pseudo_lock.c mm: update resctl to use mmap_prepare 2025-11-16 17:28:14 -08:00
rdtgroup.c fs/resctrl: Move RMID initialization to first mount 2026-01-10 11:46:48 +01:00