commit | 45d093a37b6f8c2ceae9bfd090c5265f35413b46 | [log] [download] |
---|---|---|
author | Michal Sekletár <msekleta@redhat.com> | Tue Sep 08 14:51:39 2020 +0200 |
committer | Jan Synacek <jan.synacek@gmail.com> | Wed Oct 07 10:20:26 2020 +0200 |
tree | 51e98bb04699ca1172de6d20eff614382cdecc06 | |
parent | 37f2576684d7494c916fd1f13275982f3c43f44f [diff] |
cgroup: freezer action must be NOP when cgroup v2 freezer is not available Low-level cgroup freezer state manipulation is invoked directly from the job engine when we are about to execute the job in order to make sure the unit is not frozen and job execution is not blocked because of that. Currently with cgroup v1 we would needlessly do a bunch of work in the function and even falsely update the freezer state. Don't do any of this and skip the function silently when v2 freezer is not available. Following bug is fixed by this commit, $ systemd-run --unit foo.service /bin/sleep infinity $ systemctl restart foo.service $ systemctl show -p FreezerState foo.service Before (cgroup v1, i.e. full "legacy" mode): FreezerState=thawing After: FreezerState=running (cherry picked from commit 9a1e90aee556b7a30d87553a891a4175ae77ed68) Resolves: #1868831
General information about systemd can be found in the systemd Wiki.
Information about build requirements are provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the HACKING file for information how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.