summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-14 19:11:07 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-17 15:49:21 +0100
commitbc432dc7eb62c5671f2b741a86a66393adb350dc (patch)
treeb7fb6ea81706fa02363c842cd233387d6b777bf9 /src/core/unit.h
parentb1e90ec515408aec2702522f6f68c4920b56375b (diff)
core: rework cgroup mask propagation
Previously a cgroup setting down tree would result in cgroup membership additions being propagated up the tree and to the siblings, however a unit could never lose cgroup memberships again. With this change we'll make sure that both cgroup additions and removals propagate properly.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index c104a8a9d5..808929e64a 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -177,7 +177,8 @@ struct Unit {
/* Counterparts in the cgroup filesystem */
char *cgroup_path;
- CGroupControllerMask cgroup_mask;
+ CGroupControllerMask cgroup_realized_mask;
+ CGroupControllerMask cgroup_subtree_mask;
CGroupControllerMask cgroup_members_mask;
UnitRef slice;
@@ -266,6 +267,8 @@ struct Unit {
bool in_audit:1;
bool cgroup_realized:1;
+ bool cgroup_members_mask_valid:1;
+ bool cgroup_subtree_mask_valid:1;
};
struct UnitStatusMessageFormats {