lkml.org 
[lkml]   [2015]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/3] cgroup: fix race between cgroup_post_fork() and cgroup_migrate()
From
Date
On 2015/11/28 2:57, Oleg Nesterov wrote:
> On 11/26, Oleg Nesterov wrote:
>>
>> OK. I do not know what exactly do you mean, perhaps if you fix this problem
>> the race between fork and attach goes away and in this case the fix I sent
>> is not needed?
>
> Otherwise please consider this series.
>
> Slightly tested, seems to work; please review.
>

Allowing tasks migrating between cgroups while forking is problematic. I'm more
than glad to see those changes.

Acked-by: Zefan Li <lizefan@huawei.com>

> Oleg.
>
> include/linux/cgroup-defs.h | 12 ++------
> include/linux/cgroup.h | 19 ++++---------
> include/linux/cgroup_subsys.h | 18 ------------
> kernel/cgroup.c | 30 +++++----------------
> kernel/cgroup_freezer.c | 2 +-
> kernel/cgroup_pids.c | 58 +++++++---------------------------------
> kernel/fork.c | 16 ++++-------
> kernel/sched/core.c | 2 +-
> 8 files changed, 34 insertions(+), 123 deletions(-)
>
>



\
 
 \ /
  Last update: 2015-11-28 04:41    [W:0.147 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site