From: Tejun Heo Subject: Re: [PATCH v1 3/3] cgroup: relax common ancestor restriction for direct descendants Date: Thu, 21 Jul 2016 11:50:46 -0400 Message-ID: <20160721155046.GB23759@htj.duckdns.org> References: <20160720230228.GA19588@mtj.duckdns.org> <982fcf3a-3685-9bd7-dd95-7bff255c9421@suse.de> <20160720231949.GB19588@mtj.duckdns.org> <379e5b13-29d4-ca75-1935-0a64f3db8d27@suse.de> <20160721145242.GB22680@htj.duckdns.org> <1469113456.2331.16.camel@HansenPartnership.com> <20160721150740.GF22680@htj.duckdns.org> <1469114194.2331.20.camel@HansenPartnership.com> <20160721152648.GA23759@htj.duckdns.org> <1469115276.2331.23.camel@HansenPartnership.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XwRHOlcCDZr/qs8LUgmX3XuWZnhDY8BXXA7Dy1jY3zU=; b=TX76smCyq0HMp1RO6ucSXdBq/Ir3G4hJ0fPOqIGiMtO4xrsMf2PuQXgVZ0ae5Eh9fj 8QwIP3mtqYdguM/JOZI6oeuYNnQjx3DYec1gn2WOMQSZsL1HtgLa+DK26uB+yeruru6y c5Zo1b0/UHs/7OTq0361oXxwSSeASXf3lBW2pnf1wTZPQoC7QUfLOp03yTrj9iPmmZNZ Q4Mw5jQtBxdJ+pzdueDUkSNNGCMMMddlg0YDC4FhfnDm/gRPBE8sAf6kLo8PppguAXo6 8RtEfawduyGfl3Bqe89Ral41ASGcroRgOaYJqdOyZfFp2l3DpHp/spU2GGbgZarWivqF Yr2g== Content-Disposition: inline In-Reply-To: <1469115276.2331.23.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Bottomley Cc: Aleksa Sarai , Greg Kroah-Hartman , Li Zefan , Johannes Weiner , "Serge E. Hallyn" , Aditya Kali , Chris Wilson , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Christian Brauner , dev-IGmTWi+3HBZvNhPySn5qfx2eb7JE58TQ@public.gmane.org Hello, James. On Thu, Jul 21, 2016 at 08:34:36AM -0700, James Bottomley wrote: > So if I as the cgroup ns owner am moving a task from A to A_subdir, the > admin scanning tasks in all of A may miss this task in motion because > all the tasks files can't be scanned atomically? So, the admin just wants to move processes from A and only A to B. It doesn't wanna interfere with processes in the subdirs or on-going ns operations, but if the race occurs, both A -> B migration and ns subdir operation would succeed and the end result would be something neither expects. Thanks. -- tejun