mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
core/cgroup: always submit unit to realize queue if all controllers are being invalidated
Alternative to #38190 Fixes #38112
This commit is contained in:
@@ -3950,7 +3950,11 @@ bool unit_invalidate_cgroup(Unit *u, CGroupMask m) {
|
||||
if (!crt)
|
||||
return false;
|
||||
|
||||
if (FLAGS_SET(crt->cgroup_invalidated_mask, m)) /* NOP? */
|
||||
/* If all controllers shall be invalidated, let's unconditionally submit the unit to realize queue.
|
||||
* We initialize the field to _CGROUP_MASK_ALL after all, and semantically it makes sense to use
|
||||
* it as a special signal to forcibly re-realize cgroup. */
|
||||
if (m != _CGROUP_MASK_ALL &&
|
||||
FLAGS_SET(crt->cgroup_invalidated_mask, m)) /* NOP? */
|
||||
return false;
|
||||
|
||||
crt->cgroup_invalidated_mask |= m;
|
||||
|
||||
Reference in New Issue
Block a user