chiark / gitweb /
core: make settings for unified cgroup hierarchy supersede the ones for legacy hierar...
authorTejun Heo <htejun@fb.com>
Sat, 15 Oct 2016 01:07:16 +0000 (21:07 -0400)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000 (08:50 +0200)
commitb259018664756def5de75c2caaf8303d6c63a329
tree10b4c4e4ecb8a4c0c51a750af362775743d498fa
parentd5949929f1247b0407637a44f388365e3966ef91
core: make settings for unified cgroup hierarchy supersede the ones for legacy hierarchy (#4269)

There are overlapping control group resource settings for the unified and
legacy hierarchies.  To help transition, the settings are translated back and
forth.  When both versions of a given setting are present, the one matching the
cgroup hierarchy type in use is used.  Unfortunately, this is more confusing to
use and document than necessary because there is no clear static precedence.

Update the translation logic so that the settings for the unified hierarchy are
always preferred.  elogind.resource-control man page is updated to reflect the
change and reorganized so that the deprecated settings are at the end in its
own section.
src/core/cgroup.c