Commit d068eeb
cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy
The commit 1f1562f ("cgroup/cpuset: Don't let child cpusets
restrict parent in default hierarchy") inteded to relax the check only
on the default hierarchy (or v2 mode) but it dropped the check in v1
too.
This patch returns and separates the legacy-only validations so that
they can be considered only in the v1 mode, which should enforce the old
constraints for the sake of compatibility.
Fixes: 1f1562f ("cgroup/cpuset: Don't let child cpusets restrict parent in default hierarchy")
Suggested-by: Waiman Long <longman@redhat.com>
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent daadb3b commit d068eeb
1 file changed
Lines changed: 40 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
593 | 622 | | |
594 | 623 | | |
595 | 624 | | |
| |||
614 | 643 | | |
615 | 644 | | |
616 | 645 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 646 | + | |
622 | 647 | | |
623 | 648 | | |
624 | | - | |
625 | 649 | | |
626 | | - | |
627 | | - | |
628 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
629 | 657 | | |
630 | 658 | | |
| 659 | + | |
| 660 | + | |
631 | 661 | | |
632 | 662 | | |
633 | 663 | | |
| |||
1175 | 1205 | | |
1176 | 1206 | | |
1177 | 1207 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
| 1208 | + | |
1181 | 1209 | | |
1182 | 1210 | | |
1183 | 1211 | | |
| |||
0 commit comments