cgroup: rework startup logic

System Internals / systemd - Lennart Poettering [poettering.net] - 21 May 2014 17:13 EDT

Introduce a (unsigned long) -1 as "unset" state for cpu shares/block io weights, and keep the startup unit set around all the time.

db78512 cgroup: rework startup logic
man/systemd.resource-control.xml | 65 ++++++++-----------
src/core/cgroup.c | 60 ++++++++---------
src/core/cgroup.h | 6 +-
src/core/dbus-cgroup.c | 70 ++++++++++++++------
src/core/load-fragment-gperf.gperf.m4 | 8 +--
src/core/load-fragment.c | 114 ++++-----------------------------
src/core/load-fragment.h | 2 -
src/core/manager.c | 10 +--
src/core/unit.c | 18 ++++--
9 files changed, 137 insertions(+), 216 deletions(-)

Upstream: github.com


  • Share