diff options
author | Tejun Heo <tj@kernel.org> | 2018-01-22 20:26:18 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-02-12 18:23:46 +0100 |
commit | c53593e5cb693d59d9e8b64fb3a79436bf99c3b3 (patch) | |
tree | 5accec6477421494eb877a06789e93006fae31d4 /kernel/cgroup | |
parent | Linux 4.16-rc1 (diff) | |
download | linux-c53593e5cb693d59d9e8b64fb3a79436bf99c3b3.tar.xz linux-c53593e5cb693d59d9e8b64fb3a79436bf99c3b3.zip |
sched, cgroup: Don't reject lower cpu.max on ancestors
While adding cgroup2 interface for the cpu controller, 0d5936344f30
("sched: Implement interface for cgroup unified hierarchy") forgot to
update input validation and left it to reject cpu.max config if any
descendant has set a higher value.
cgroup2 officially supports delegation and a descendant must not be
able to restrict what its ancestors can configure. For absolute
limits such as cpu.max and memory.max, this means that the config at
each level should only act as the upper limit at that level and
shouldn't interfere with what other cgroups can configure.
This patch updates config validation on cgroup2 so that the cpu
controller follows the same convention.
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 0d5936344f30 ("sched: Implement interface for cgroup unified hierarchy")
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org # v4.15+
Diffstat (limited to 'kernel/cgroup')
0 files changed, 0 insertions, 0 deletions