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 12:48:14 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent d182614649
commit f236910365
+1 -1
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);
}