]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: in unit_invalidate_cgroup() actually modify invalidation mask
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Nov 2018 21:02:53 +0000 (22:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 12:41:37 +0000 (13:41 +0100)
commite00068e71fcf33ccd9190cb18d1539cd921cf444
treee870d238302201f9036705e56acab6fb60a581fd
parent27adcc973771a998433635672e2eee0a4489b8a4
cgroup: in unit_invalidate_cgroup() actually modify invalidation mask

Previously this would manipulate the realization mask for invalidating
the realization. This is a bit ugly though as the realization mask's
primary purpose to is to reflect in which hierarchies a cgroup currently
exists, and it's probably a good idea to keep that in sync with
realities.

We nowadays have the an explicit fields for invalidating cgroup
controller information, the "cgroup_invalidated_mask", let's use this
one instead.

The effect is pretty much the same, as the main consumer of these masks
(unit_has_mask_realize()) checks both anyway.
src/core/cgroup.c