projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d182614
)
blkio: fix incorrect setting of cpu_shares
author
Gao feng
<gaofeng@cn.fujitsu.com>
Fri, 23 Aug 2013 09:53:23 +0000
(17:53 +0800)
committer
Zbigniew 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
patch
|
blob
|
history
diff --git
a/src/core/dbus-cgroup.c
b/src/core/dbus-cgroup.c
index
8ad3d11
..
9e97b20
100644
(file)
--- 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);
}