cgroup: Implicit unit_invalidate_cgroup_members_masks

Merge members mask invalidation into
unit_add_siblings_to_cgroup_realize_queue, this way unit_realize_cgroup
needn't be called with members mask invalidation.

We have to retain the members mask invalidation in unit_load -- although
active units would have cgroups (re)realized (unit_load queues for
realization), the realization would happen with potentially stale mask.
This commit is contained in:
Michal Koutný
2020-08-19 11:41:53 +02:00
parent fb46fca7e0
commit f23ba94db3
8 changed files with 6 additions and 9 deletions
-1
View File
@@ -469,7 +469,6 @@ int bus_socket_set_property(
int bus_socket_commit_properties(Unit *u) {
assert(u);
unit_invalidate_cgroup_members_masks(u);
unit_realize_cgroup(u);
return 0;