Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: do not overwrite old cpu quota/period
Seting CPU quota and period independently does not make much sense, but historically runc allowed it and this needs to be supported to not break compatibility. For systemd cgroup drivers to set CPU quota/period correctly, it needs to know both values. For fs2 cgroup driver to be compatible with the fs driver, it also needs to know both values. Here in update, previously set values are available from config. If only one of {quota,period} is set and the other is not, leave the unset parameter at the old value (don't overwrite config). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information