mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
blkio: fix incorrect setting of cpu_shares
We should set up blockio_weight not cpu_shares.
This commit is contained in:
parent
d182614649
commit
f236910365
@ -216,7 +216,7 @@ int bus_cgroup_set_property(
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (mode != UNIT_CHECK) {
|
if (mode != UNIT_CHECK) {
|
||||||
c->cpu_shares = ul;
|
c->blockio_weight = ul;
|
||||||
unit_write_drop_in_private_format(u, mode, name, "BlockIOWeight=%lu", ul);
|
unit_write_drop_in_private_format(u, mode, name, "BlockIOWeight=%lu", ul);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user