Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755255AbbK0S4a (ORCPT ); Fri, 27 Nov 2015 13:56:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53635 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755017AbbK0S41 (ORCPT ); Fri, 27 Nov 2015 13:56:27 -0500 Date: Fri, 27 Nov 2015 19:57:05 +0100 From: Oleg Nesterov To: Aleksa Sarai , Johannes Weiner , Li Zefan , Tejun Heo Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/3] cgroup: fix race between cgroup_post_fork() and cgroup_migrate() Message-ID: <20151127185705.GA14669@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 27 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. 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/