Commit cd22cba
committed
cgroup: Minor reorganization of cgroup_create()
cgroup_bpf init and exit handling will be moved to a notifier chain. In
prepartion, reorganize cgroup_create() a bit so that the new cgroup is fully
initialized before any outside changes are made.
- cgrp->ancestors[] initialization and the hierarchical nr_descendants and
nr_frozen_descendants updates were in the same loop. Separate them out and
do the former earlier and do the latter later.
- Relocate cgroup_bpf_inherit() call so that it's after all cgroup
initializations are complete.
No visible behavior changes expected.
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent d16e799 commit cd22cba
1 file changed
Lines changed: 24 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5660 | 5660 | | |
5661 | 5661 | | |
5662 | 5662 | | |
5663 | | - | |
| 5663 | + | |
5664 | 5664 | | |
5665 | 5665 | | |
5666 | 5666 | | |
| |||
5700 | 5700 | | |
5701 | 5701 | | |
5702 | 5702 | | |
5703 | | - | |
5704 | | - | |
5705 | | - | |
5706 | | - | |
5707 | | - | |
| 5703 | + | |
| 5704 | + | |
5708 | 5705 | | |
5709 | 5706 | | |
5710 | 5707 | | |
| |||
5722 | 5719 | | |
5723 | 5720 | | |
5724 | 5721 | | |
5725 | | - | |
5726 | | - | |
5727 | | - | |
5728 | | - | |
5729 | | - | |
5730 | | - | |
5731 | | - | |
5732 | | - | |
5733 | | - | |
5734 | | - | |
5735 | | - | |
5736 | | - | |
5737 | | - | |
5738 | | - | |
5739 | | - | |
5740 | | - | |
5741 | | - | |
5742 | | - | |
5743 | 5722 | | |
5744 | 5723 | | |
5745 | 5724 | | |
| |||
5748 | 5727 | | |
5749 | 5728 | | |
5750 | 5729 | | |
| 5730 | + | |
| 5731 | + | |
| 5732 | + | |
| 5733 | + | |
| 5734 | + | |
| 5735 | + | |
5751 | 5736 | | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
| 5740 | + | |
| 5741 | + | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
| 5745 | + | |
| 5746 | + | |
| 5747 | + | |
| 5748 | + | |
| 5749 | + | |
| 5750 | + | |
| 5751 | + | |
5752 | 5752 | | |
5753 | 5753 | | |
5754 | 5754 | | |
| |||
0 commit comments