From: Gao feng Date: Fri, 23 Aug 2013 09:53:23 +0000 (+0800) Subject: blkio: fix incorrect setting of cpu_shares X-Git-Tag: v207~87 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f2369103655ccfd830b08cbc01fa776ba91a580d;p=elogind.git blkio: fix incorrect setting of cpu_shares We should set up blockio_weight not cpu_shares. --- diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index 8ad3d118c..9e97b20d1 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); }