lkml.org 
[lkml]   [2023]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 2/5] mm: kmem: add direct objcg pointer to task_struct
From
On Mon, Oct 09, 2023 at 05:09:26PM -0700, Roman Gushchin wrote:
[...]
> +static void mem_cgroup_kmem_attach(struct cgroup_taskset *tset)
> +{
> + struct task_struct *task;
> + struct cgroup_subsys_state *css;
> +
> + cgroup_taskset_for_each(task, css, tset) {
> + /* atomically set the update bit */
> + set_bit(0, (unsigned long *)&current->objcg);

task instead of current ??

> + }
> +}

\
 
 \ /
  Last update: 2023-10-11 20:02    [W:0.124 / U:4.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site