]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/cgroup: Silence IODeviceWeight= exclusive policy warnings 21795/head
authorMichal Koutný <mkoutny@suse.com>
Wed, 23 Mar 2022 18:02:06 +0000 (19:02 +0100)
committerMichal Koutný <mkoutny@suse.com>
Tue, 29 Mar 2022 16:06:40 +0000 (18:06 +0200)
commit3e6eafddbfa3ed8a33f38dd33f872add042dae1b
tree6bbcccefc1b70ae2fcc8150a0009a47db502c5bd
parent8d75f60e3ab861fb2e527003bd2da26605a26de5
core/cgroup: Silence IODeviceWeight= exclusive policy warnings

A single device cannot have more than a single proportional control
policy at the same time. So either io.bfq.weight or io.weight will
always fail. Process the resulting values and emit a warning message
only when none was really configured.

This patch also drops warnings when setting [blk]io.bfq.weight fails,
the code would be too convoluted otherwise.
src/core/cgroup.c