x86/resctrl: Move default group file creation to mount
mainline inclusion from mainline-v6.7-rc1 commit d27567a0eb54be457b25e240593fdbd1c35c8618 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d27567a0eb54be457b25e240593fdbd1c35c8618 -------------------------------- The default resource group and its files are created during kernel init time. Upcoming changes will make some resctrl files optional based on a mount parameter. If optional files are to be added to the default group based on the mount option, then each new file needs to be created separately and call kernfs_activate() again. Create all files of the default resource group during resctrl mount, destroyed during unmount, to avoid scattering resctrl file addition across two separate code flows. Signed-off-by:Babu Moger <babu.moger@amd.com> Signed-off-by:
Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by:
Peter Newman <peternewman@google.com> Reviewed-by:
Tan Shaopeng <tan.shaopeng@jp.fujitsu.com> Reviewed-by:
Fenghua Yu <fenghua.yu@intel.com> Reviewed-by:
Reinette Chatre <reinette.chatre@intel.com> Reviewed-by:
Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Tested-by:
Peter Newman <peternewman@google.com> Tested-by:
Tan Shaopeng <tan.shaopeng@jp.fujitsu.com> Link: https://lore.kernel.org/r/20231017002308.134480-6-babu.moger@amd.com Signed-off-by:
Zeng Heng <zengheng4@huawei.com>
Loading
Please sign in to comment