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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Fri Aug 23 09:50:02 PDT 2013


On Fri, Aug 23, 2013 at 05:53:23PM +0800, Gao feng wrote:
> We should set up blockio_weight not cpu_shares.
> 
> Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>
No need for signed-of-by.

> ---
>  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);
>                  }
Ooops, applied.

Zbyszek


More information about the systemd-devel mailing list