diff options
author | Tejun Heo <htejun@fb.com> | 2016-11-21 14:45:53 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-18 17:51:17 -0500 |
commit | b6629c4b9f82f5801af186e975b0220bf066ddbe (patch) | |
tree | 23e89baf9c90615f92c0cc9af28f098b8146f2f7 /src/basic/def.h | |
parent | 415fc41ceaeada2e32639f24f134b1c248b9e43f (diff) | |
download | systemd-b6629c4b9f82f5801af186e975b0220bf066ddbe.tar.gz |
core: make SYSTEMD_CGROUP_CONTROLLER a special string
SYSTEMD_CGROUP_CONTROLLER is currently defined as "name=systemd" which cgroup
utility functions interpret as a named cgroup hierarchy with the specified
named. With the planned cgroup hybrid mode changes, SYSTEMD_CGROUP_CONTROLLER
would map to different hierarchy names.
This patch makes SYSTEMD_CGROUP_CONTROLLER a special string "_systemd" which is
substituted to "name=systemd" by the cgroup utility functions. This allows the
callers to address the systemd hierarchy without actually specifying the
hierarchy name allowing the cgroup utility functions to map it to whatever is
appropriate.
Note that SYSTEMD_CGROUP_CONTROLLER was already special on full unified cgroup
hierarchy even before this patch.
Diffstat (limited to 'src/basic/def.h')
-rw-r--r-- | src/basic/def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/def.h b/src/basic/def.h index 2266eff650..3ba275f64b 100644 --- a/src/basic/def.h +++ b/src/basic/def.h @@ -36,7 +36,8 @@ /* The default value for the net.unix.max_dgram_qlen sysctl */ #define DEFAULT_UNIX_MAX_DGRAM_QLEN 512UL -#define SYSTEMD_CGROUP_CONTROLLER "name=systemd" +#define SYSTEMD_CGROUP_CONTROLLER_LEGACY "name=systemd" +#define SYSTEMD_CGROUP_CONTROLLER "_systemd" #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT #define SIGNALS_IGNORE SIGPIPE |