Re: [PATCH] cgroup: fix top cgroup refcnt leak

2014-02-14 Thread Tejun Heo
On Fri, Feb 14, 2014 at 07:15:18PM +0800, Li Zefan wrote: > > /* > > +* A root's lifetime is governed by its top cgroup. Zero > > +* ref indicate that the root is being destroyed. Wait for > > +* destruction to complete so that the subsystems are fr

Re: [PATCH] cgroup: fix top cgroup refcnt leak

2014-02-14 Thread Li Zefan
于 2014年02月14日 17:36, Li Zefan 写道: > If we mount the same cgroupfs in serveral mount points, and then > umount all of them, kill_sb() will be called only once. > > Therefore it's wrong to increment top_cgroup's refcnt when we find > an existing cgroup_root. > > Try: > # mount -t cgroup -o cp