Commit 703ac29
committed
cgroup/cpuset: Account for boot time isolated CPUs
jira NONE_AUTOMATION
Rebuild_History Non-Buildable kernel-5.14.0-570.17.1.el9_6
commit-author Waiman Long <[email protected]>
commit c188f33
With the "isolcpus" boot command line parameter, we are able to
create isolated CPUs at boot time. These isolated CPUs aren't fully
accounted for in the cpuset code. For instance, the root cgroup's
"cpuset.cpus.isolated" control file does not include the boot time
isolated CPUs. Fix that by looking for pre-isolated CPUs at init time.
The prstate_housekeeping_conflict() function does check the
HK_TYPE_DOMAIN housekeeping cpumask to make sure that CPUs outside of it
can only be used in isolated partition. Given the fact that we are going
to make housekeeping cpumasks dynamic, the current check may not be right
anymore. Save the boot time HK_TYPE_DOMAIN cpumask and check against
it instead of the upcoming dynamic HK_TYPE_DOMAIN housekeeping cpumask.
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
(cherry picked from commit c188f33)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 4c591db commit 703ac29
1 file changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
| |||
1801 | 1807 | | |
1802 | 1808 | | |
1803 | 1809 | | |
1804 | | - | |
1805 | | - | |
| 1810 | + | |
| 1811 | + | |
1806 | 1812 | | |
1807 | 1813 | | |
1808 | 1814 | | |
1809 | | - | |
1810 | | - | |
| 1815 | + | |
| 1816 | + | |
1811 | 1817 | | |
1812 | | - | |
| 1818 | + | |
1813 | 1819 | | |
1814 | 1820 | | |
1815 | 1821 | | |
| |||
4334 | 4340 | | |
4335 | 4341 | | |
4336 | 4342 | | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
4337 | 4350 | | |
4338 | 4351 | | |
4339 | 4352 | | |
| |||
0 commit comments