1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-26 10:03:40 +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

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);
}