diff options
author | Waiman Long <[email protected]> | 2023-06-27 10:35:01 -0400 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2023-07-10 11:00:12 -1000 |
commit | a86ce68078b200a5dcc263da01154ee926c25188 (patch) | |
tree | 882514d74b9228f92e8d33ce20494f2665c032c9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | c8c926200c55454101f072a4b16c9ff5b8c9e56f (diff) |
cgroup/cpuset: Extract out CS_CPU_EXCLUSIVE & CS_SCHED_LOAD_BALANCE handling
Extract out the setting of CS_CPU_EXCLUSIVE and CS_SCHED_LOAD_BALANCE
flags as well as the rebuilding of scheduling domains into the new
update_partition_exclusive() and update_partition_sd_lb() helper
functions to simplify the logic. The update_partition_exclusive()
helper is called mainly at the beginning of the caller, but it may be
called at the end too. The update_partition_sd_lb() helper is called
at the end of the caller.
This patch should reduce the chance that cpuset partition will end up
in an incorrect state.
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions