[systemd-devel] [PATCH] blkio: fix incorrect setting of cpu_shares

Gao feng gaofeng at cn.fujitsu.com
Fri Aug 23 02:53:23 PDT 2013


We should set up blockio_weight not cpu_shares.

Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>
---
 src/core/dbus-cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
index 8ad3d11..9e97b20 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);
                 }
 
-- 
1.8.3.1



More information about the systemd-devel mailing list