mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 03:52:02 +02:00
cgroup: Fixes for v7.3-rc4
- A cpuset partition could claim CPUs an ancestor partition already held exclusively. Restore the rejection an earlier change had turned into a warning. -----BEGIN PGP SIGNATURE----- iIQEABYKACwWIQTfIjM1kS57o3GsC/uxYfJx3gVYGQUCarjXAw4cdGpAa2VybmVs Lm9yZwAKCRCxYfJx3gVYGctVAQD3UPz2537MRkVZtcy4QfgyObMRXEaTGEBBJV+g ougCLgD/ZOVFjyK/bD3wXgtpiRZq9NbL+VvPQfrOjqz3Q/wVww8= =Vyrg -----END PGP SIGNATURE----- Merge tag 'cgroup-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup Pull cgroup fix from Tejun Heo: - A cpuset partition could claim CPUs an ancestor partition already held exclusively. Restore the rejection an earlier change had turned into a warning. * tag 'cgroup-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup/cpuset: Return PERR_NOCPUS in remote_partition_enable() on subpartitions_cpus conflict
This commit is contained in:
commit
b1fa457bdd
|
|
@ -1591,10 +1591,11 @@ static int remote_partition_enable(struct cpuset *cs, int new_prs,
|
|||
* above it or remote partition root underneath it is not allowed.
|
||||
*/
|
||||
compute_excpus(cs, tmp->new_cpus);
|
||||
WARN_ON_ONCE(cpumask_intersects(tmp->new_cpus, subpartitions_cpus));
|
||||
if (!cpumask_intersects(tmp->new_cpus, cpu_active_mask) ||
|
||||
cpumask_subset(top_cpuset.effective_cpus, tmp->new_cpus))
|
||||
return PERR_INVCPUS;
|
||||
if (cpumask_intersects(tmp->new_cpus, subpartitions_cpus))
|
||||
return PERR_NOCPUS;
|
||||
if (((new_prs == PRS_ISOLATED) &&
|
||||
!isolated_cpus_can_update(tmp->new_cpus, NULL)) ||
|
||||
prstate_housekeeping_conflict(new_prs, tmp->new_cpus))
|
||||
|
|
|
|||
|
|
@ -298,6 +298,8 @@ TEST_MATRIX=(
|
|||
" C0-4:X2-4 C1-4:X2-4:P2 C2-4:X4:P1 \
|
||||
. . . X1 . 0 A1:0-1|A2:2-4|A3:2-4 \
|
||||
A1:P0|A2:P2|A3:P-1 2-4"
|
||||
" CX1-3:P1 CX1-3 CX1-3 . . . P1 . 0 A1:1-3|A2:1-3|A3:1-3 \
|
||||
A1:P1|A2:P0|A3:P-1"
|
||||
|
||||
# Remote partition offline tests
|
||||
" C0-3 C1-3 C2-3 . X2-3 X2-3 X2-3:P2:O2=0 . 0 A1:0-1|A2:1|A3:3 A1:P0|A3:P2 2-3"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user