Commit d089164
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.com1 parent 0ecc988 commit d089164
3 files changed
Lines changed: 34 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
| 906 | + | |
907 | 907 | | |
908 | | - | |
909 | 908 | | |
910 | | - | |
| 909 | + | |
911 | 910 | | |
| 911 | + | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
| 914 | + | |
914 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
915 | 926 | | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
| 927 | + | |
| 928 | + | |
920 | 929 | | |
921 | 930 | | |
922 | 931 | | |
| |||
929 | 938 | | |
930 | 939 | | |
931 | 940 | | |
932 | | - | |
| 941 | + | |
933 | 942 | | |
934 | 943 | | |
935 | 944 | | |
936 | 945 | | |
937 | 946 | | |
938 | 947 | | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
| 948 | + | |
943 | 949 | | |
944 | 950 | | |
945 | | - | |
| 951 | + | |
946 | 952 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
| 953 | + | |
| 954 | + | |
951 | 955 | | |
| 956 | + | |
952 | 957 | | |
953 | 958 | | |
954 | | - | |
955 | | - | |
956 | 959 | | |
957 | 960 | | |
958 | 961 | | |
| |||
1830 | 1833 | | |
1831 | 1834 | | |
1832 | 1835 | | |
1833 | | - | |
| 1836 | + | |
| 1837 | + | |
1834 | 1838 | | |
1835 | 1839 | | |
1836 | 1840 | | |
| |||
1850 | 1854 | | |
1851 | 1855 | | |
1852 | 1856 | | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | 1857 | | |
1860 | 1858 | | |
1861 | 1859 | | |
| |||
1902 | 1900 | | |
1903 | 1901 | | |
1904 | 1902 | | |
1905 | | - | |
1906 | | - | |
1907 | 1903 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2800 | 2800 | | |
2801 | 2801 | | |
2802 | 2802 | | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
2803 | 2807 | | |
2804 | 2808 | | |
2805 | 2809 | | |
| |||
4655 | 4659 | | |
4656 | 4660 | | |
4657 | 4661 | | |
| 4662 | + | |
4658 | 4663 | | |
0 commit comments