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>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commitff940bb2e2dc7ab3ef23fcaa26361c871313e7cd
tree2d81ddfc7673ff9ae0b0e6839cd5d22381a47b86
parent3e828d44682b1b8b9a83b0a45431ae993edcbb7f
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