lkml.org 
[lkml]   [2018]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] psi: cgroup support
On Mon, May 07, 2018 at 05:01:35PM -0400, Johannes Weiner wrote:
> --- a/kernel/sched/psi.c
> +++ b/kernel/sched/psi.c
> @@ -260,6 +260,18 @@ void psi_task_change(struct task_struct *task, u64 now, int clear, int set)
> task->psi_flags |= set;
>
> psi_group_update(&psi_system, cpu, now, clear, set);
> +
> +#ifdef CONFIG_CGROUPS
> + cgroup = task->cgroups->dfl_cgrp;
> + while (cgroup && (parent = cgroup_parent(cgroup))) {
> + struct psi_group *group;
> +
> + group = cgroup_psi(cgroup);
> + psi_group_update(group, cpu, now, clear, set);
> +
> + cgroup = parent;
> + }
> +#endif
> }

TJ fixed needing that for stats at some point, why can't you do the
same?

\
 
 \ /
  Last update: 2018-05-09 13:08    [W:0.111 / U:5.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site