Re: [PATCH v1 3/3] cgroup: relax common ancestor restriction for direct descendants
From: Tejun Heo
Date: Thu Jul 21 2016 - 17:06:28 EST
Hello,
On Thu, Jul 21, 2016 at 11:16:42AM -0700, James Bottomley wrote:
> OK so a theoretical (not saying it's implementable, we'll have to
> explore that) way of fixing all of this is to have separate views of
> the tree. If the admin always saw everything in A, even if the
> cgroupns had created subdirectories in its own namespace. That way
> there'd be no race ever in the admin's view (because it's the view they
> created and would expect to see). All sub cgroup activity would only
> be visible to tasks in the new cgroupns (we'd probably have to have
> them make this visible by mounting a new cgroup tree).
Yeah, something like that. The two domains of operation need to be
transparent to each other so that things taking place at system level
doesn't interfere with user level operations and vice-versa. It's
likely that implementing something like that within filesystem based
interface won't work out too well. There are too many expected
behaviors from being a filesystem which don't quite agree with such
abstraction.
Thanks.
--
tejun