From f2369103655ccfd830b08cbc01fa776ba91a580d Mon Sep 17 00:00:00 2001 From: Gao feng Date: Fri, 23 Aug 2013 17:53:23 +0800 Subject: blkio: fix incorrect setting of cpu_shares We should set up blockio_weight not cpu_shares. --- src/core/dbus-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/dbus-cgroup.c') 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); } -- cgit v1.2.3-54-g00ecf