Re: [PATCH] perf/core: fix RCU issues with cgroup monitoring mode

From: Peter Zijlstra
Date: Sat Oct 17 2015 - 06:01:03 EST


On Sat, Oct 17, 2015 at 03:28:11AM +0200, Stephane Eranian wrote:
> static int __perf_cgroup_move(void *info)
> {
> struct task_struct *task = info;
> + rcu_read_lock();
> perf_cgroup_switch(task, PERF_CGROUP_SWOUT | PERF_CGROUP_SWIN);
> + rcu_read_unlock();
> return 0;
> }

On second thought, how can this be right? Surely the cgroup system has
cgroups stabilized over calling ->attach() ?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/