lkml.org 
[lkml]   [2014]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] cgroup: make the default root invisible when it's umounted
On Tue, Jun 03, 2014 at 12:05:22PM +0800, Li Zefan wrote:
> Before this patch (in a fresh system):
>
> # cat /proc/$$/cgroup
> # mount -t cgroup -o __DEVEL__sane_behavior xxx /cgroup
> # umount /cgroup
> # cat /proc/$$/cgroup
> 0:cpuset,cpu,cpuacct,memory,devices,freezer,net_cls,blkio,perf_event,net_prio,hugetlb:/
>
> After this patch (in a fresh system):
>
> # cat ...
> # mount ...
> # umount ...
> # cat /proc/$$/cgroup
> #
>
> You won't see the default root after it's umounted.

Hmmmm... I intentionally left it visible tho. The only reason we gate
its visibility is avoid disturbing userland which doesn't know about
and won't use the unified hierarchy. If the userland starts making
use of it, there's no reason to hide it again especially as that's
consistent with how other hierarchies behave too - they keep showing
up if they have lingering refs.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2014-06-03 15:41    [W:0.090 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site