chiark / gitweb /
cgroup: if we do a cgroup operation then do something on all supported controllers
authorLennart Poettering <lennart@poettering.net>
Tue, 24 Sep 2013 02:56:05 +0000 (21:56 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Sep 2013 01:38:17 +0000 (03:38 +0200)
commit13b84ec7df103ce388910a2b868fe1668c1e27ef
tree773d34a85343a61b3368ef5a67a156ffcf14689a
parent8bd94f7a03032ac9218e88e8e099e974627a3bcb
cgroup: if we do a cgroup operation then do something on all supported controllers

Previously we did operations like attach, trim or migrate only on the
controllers that were enabled for a specific unit. With this changes we
will now do them for all supproted controllers, and fall back to all
possible prefix paths if the specified paths do not exist.

This fixes issues if a controller is being disabled for a unit where it
was previously enabled, and makes sure that all processes stay as "far
down" the tree as groups exist.
src/core/cgroup.c
src/core/execute.c
src/core/mount.c
src/core/scope.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h