1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

blkio: fix incorrect setting of cpu_shares

We should set up blockio_weight not cpu_shares.
This commit is contained in:
Gao feng 2013-08-23 17:53:23 +08:00 committed by Zbigniew Jędrzejewski-Szmek
parent d182614649
commit f236910365
Notes: Lennart Poettering 2013-10-04 17:11:46 +02:00
Backport: bugfix

View File

@ -216,7 +216,7 @@ int bus_cgroup_set_property(
return -EINVAL;
if (mode != UNIT_CHECK) {
c->cpu_shares = ul;
c->blockio_weight = ul;
unit_write_drop_in_private_format(u, mode, name, "BlockIOWeight=%lu", ul);
}