core/cgroup: set bfq.weight first, and fixes blkio.weight value
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Aug 2021 16:28:47 +0000 (01:28 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 18:18:24 +0000 (19:18 +0100)
commit55af1d4ce32a32ebd3106cbdf1ef8b6cda55175f
tree933e03a5833e3815a2b9fbb9a272f2e6f39acb93
parente1935506efb40f6ee90508113c437ded498936dc
core/cgroup: set bfq.weight first, and fixes blkio.weight value

Fixes issues introduced by 29eb0eefd14afc9a2424781a28b376db47c3c570.

This also fixes the value sets to blkio.weight, that is, "default" is dropped.

Moreover, This also changes the logic for mapping weight -> bfq.weight,
to always matches the min, max, and default values.

Fixes #20519 and #21187.

(cherry picked from commit 17283ce7b6035775f125585d1b228226942daf4b)
src/core/cgroup.c