diff options
author | 2023-05-08 09:58:54 +0200 | |
---|---|---|
committer | 2023-05-08 13:22:33 -1000 | |
commit | 2ef269ef1ac006acf974793d975539244d77b28f (patch) | |
tree | 6bbacbb12b57a9f939a4c475488c7d43ad5b08dc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | sched/deadline: Create DL BW alloc, free & check overflow interface (diff) | |
download | wireguard-linux-2ef269ef1ac006acf974793d975539244d77b28f.tar.xz wireguard-linux-2ef269ef1ac006acf974793d975539244d77b28f.zip |
cgroup/cpuset: Free DL BW in case can_attach() fails
cpuset_can_attach() can fail. Postpone DL BW allocation until all tasks
have been checked. DL BW is not allocated per-task but as a sum over
all DL tasks migrating.
If multiple controllers are attached to the cgroup next to the cpuset
controller a non-cpuset can_attach() can fail. In this case free DL BW
in cpuset_cancel_attach().
Finally, update cpuset DL task count (nr_deadline_tasks) only in
cpuset_attach().
Suggested-by: Waiman Long <longman@redhat.com>
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions