diff options
| author | Waiman Long <longman@redhat.com> | 2026-09-27 17:53:18 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-09-28 07:26:29 -1000 |
| commit | 8a1c0f5c82843104d9bef2bc3726c89da70a9b91 (patch) | |
| tree | 61ce3de81cb06285bf4aab0435ec01d548c6984a /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | aa4decd2d9ee506b9878c9c4617f29cc08fc41e9 (diff) | |
| download | linux-next-8a1c0f5c82843104d9bef2bc3726c89da70a9b91.tar.gz linux-next-8a1c0f5c82843104d9bef2bc3726c89da70a9b91.zip | |
cgroup/cpuset: Run SCHED_DEADLINE shrink test on valid partition root only
Commit f82f80426f7a ("sched/deadline: Ensure that updates to exclusive
cpusets don't break AC") adds a check in validate_change() to make
sure that there is enough bandwidth for SCHED_DEADLINE tasks if we
shrink a v1 exclusive cpuset that has CS_CPU_EXCLUSIVE flag set.
With the introduction of cpuset partition in cgroup v2, we keep setting
the CS_CPU_EXCLUSIVE flag for a partition root so that the SCHED_DEADLINE
check will continue to work as intended. However it turns out that the
current code isn't perfect and there are cases where a cpuset isn't
a valid partition root, but the exclusive flag is still incorrectly
set. This can leads to SCHED_DEADLINE check being incorrectly triggered
when there are deadline tasks in the system. This can result in unexpected
-EBUSY failure when making changes to cpuset control files. Fix that
by checking for a valid partition root for v2 and is_cpu_exclusive()
for v1. It is far easier and less cumbersome than to make sure that
the exclusive flag is only set for valid partition roots.
Even though commit a86ce68078b2 ("cgroup/cpuset: Extract out
CS_CPU_EXCLUSIVE & CS_SCHED_LOAD_BALANCE handling") is marked as a
commit to be fixed, the problem may exist before that.
Fixes: a86ce68078b2 ("cgroup/cpuset: Extract out CS_CPU_EXCLUSIVE & CS_SCHED_LOAD_BALANCE handling")
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Ridong Chen <ridong.chen@linux.dev>
Reviewed-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
