chiark / gitweb /
blkio: fix incorrect setting of cpu_shares
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 23 Aug 2013 09:53:23 +0000 (17:53 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Aug 2013 16:48:14 +0000 (12:48 -0400)
We should set up blockio_weight not cpu_shares.

src/core/dbus-cgroup.c

index 8ad3d11..9e97b20 100644 (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);
                 }