Re: [PATCH 1/9] vircgroup: one central point for adding tasks to cgroups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.schild@xxxxxxxxxxx>
> ---
>  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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]