diff options
author | David Strauss <david@davidstrauss.net> | 2013-11-11 19:03:31 +1000 |
---|---|---|
committer | David Strauss <david@davidstrauss.net> | 2013-11-22 11:22:47 +1000 |
commit | 6414b7c981378a6eef480f6806d7cbfc98ca22a1 (patch) | |
tree | 52e636340ce65e8e5d69ad7e8dd8b4f2ec310e72 /src/core/unit.c | |
parent | 52c7f2b2d58394c791ea0c6cf706082fd418f5bc (diff) |
cgroups: Cache controller masks and optimize queues.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 1173f0b160..894485f6d7 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -741,7 +741,8 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { "%s\tSlice: %s\n" "%s\tCGroup: %s\n" "%s\tCGroup realized: %s\n" - "%s\tCGroup mask: 0x%x\n", + "%s\tCGroup mask: 0x%x\n" + "%s\tCGroup members mask: 0x%x\n", prefix, u->id, prefix, unit_description(u), prefix, strna(u->instance), @@ -757,7 +758,8 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { prefix, strna(unit_slice_name(u)), prefix, strna(u->cgroup_path), prefix, yes_no(u->cgroup_realized), - prefix, u->cgroup_mask); + prefix, u->cgroup_mask, + prefix, u->cgroup_members_mask); SET_FOREACH(t, u->names, i) fprintf(f, "%s\tName: %s\n", prefix, t); @@ -1025,6 +1027,8 @@ int unit_load(Unit *u) { goto fail; } + unit_update_member_masks(u); + r = unit_add_mount_links(u); if (r < 0) goto fail; |