On Tue, Feb 23, 2016 at 04:58:36PM +0100, Henning Schild wrote:
> Use virCgroupAddTaskController in virCgroupAddTask so we have one
> single point where we add tasks to cgroups.
> 
> Signed-off-by: Henning Schild <henning.sch...@siemens.com>
> ---
>  src/util/vircgroup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
> index 7584ee4..0b65238 100644
> --- a/src/util/vircgroup.c
> +++ b/src/util/vircgroup.c
> @@ -1162,7 +1162,7 @@ virCgroupAddTask(virCgroupPtr group, pid_t pid)
>          if (i == VIR_CGROUP_CONTROLLER_SYSTEMD)
>              continue;
>  
> -        if (virCgroupSetValueU64(group, i, "tasks", pid) < 0)
> +        if (virCgroupAddTaskController(group, pid, i) < 0)
>              goto cleanup;
>      }

ACK

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to