diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-08-23 17:53:23 +0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-08-23 12:48:14 -0400 |
commit | f2369103655ccfd830b08cbc01fa776ba91a580d (patch) | |
tree | a27bc68a9eabce5bc6214e7a9fc7855de785ec78 /src/core | |
parent | d182614649b48c00615d744e2b7f4a14180a980d (diff) |
blkio: fix incorrect setting of cpu_shares
We should set up blockio_weight not cpu_shares.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/dbus-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index 8ad3d118c5..9e97b20d1e 100644 --- a/src/core/dbus-cgroup.c +++ b/src/core/dbus-cgroup.c @@ -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); } |