cgroup: Respect DefaultMemoryMin when setting memory.min
authorChris Down <chris@chrisdown.name>
Mon, 30 Sep 2019 17:25:09 +0000 (18:25 +0100)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
commit0b03c84cb093b3942e531eb35e65bc364d4a3be6
tree04c371812823bef45ded59aadf82f568d0cf5718
parent8da9d076e9920fed02e685c28641d3e4abd6701e
cgroup: Respect DefaultMemoryMin when setting memory.min

This is an oversight from https://github.com/systemd/systemd/pull/12332.

Sadly the tests didn't catch it since it requires a real cgroup
hierarchy to see, and it wasn't seen in prod since we're only currently
using DefaultMemoryLow, not DefaultMemoryMin. :-(

(cherry picked from commit 64fe532e90b3e99bf7821ded8a1107c239099e40)
(cherry picked from commit f14e3e02cca759dc92c87328e257acc6abe91cbc)

Gbp-Pq: Name cgroup-Respect-DefaultMemoryMin-when-setting-memory.min.patch
src/core/cgroup.c