File 0001-cgroup-actually-reset-the-cgroup-invalidation-mask-a.patch of Package systemd.17970

From 07a5ede61276873c8706efda6fcc55102d9a897f Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Thu, 18 Oct 2018 10:02:00 +0200
Subject: [PATCH 1/1] cgroup: actually reset the cgroup invalidation mask after
 we made our changes

Previously we never unmasked the mask after it was set once. Let's fix
that.

(cherry picked from commit c2baf11c36441725e1d9abda8dbb2e4098b4f6e2)

[mkoutny: fixes bsc#1178775]
[mkoutny: fixes backport of 17f149556af0c0610b44f7353de34487b168317d]
---
 src/core/cgroup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 8279dd7b51..9efd8061a8 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -1487,6 +1487,8 @@ static int unit_realize_cgroup_now(Unit *u, ManagerState state) {
         cgroup_context_apply(u, target_mask, state);
         cgroup_xattr_apply(u);
 
+        /* Now, reset the invalidation mask */
+        u->cgroup_invalidated_mask = 0;
         return 0;
 }
 
-- 
2.26.2

openSUSE Build Service is sponsored by