* Kirill A. Shutemov <[email protected]> [2010-02-24 13:42:15]:
> On Wed, Feb 24, 2010 at 10:40 AM, Balbir Singh
> <[email protected]> wrote:
> > * Kirill A. Shutemov <[email protected]> [2010-02-22 17:43:40]:
> >
> >> Events should be removed after rmdir of cgroup directory, but before
> >> destroying subsystem state objects. Let's take reference to cgroup
> >> directory dentry to do that.
> >>
> >> Signed-off-by: Kirill A. Shutemov <[email protected]>
> >> Acked-by: KAMEZAWA Hiroyuki <[email protected]>
> >
> > Looks good, but remember the mem_cgroup data structure will can
> > disappear after the rmdir
>
> IIUC, struct mem_cgroup can be freed only after ->destroy(), which can
> be called only if there is no references to cgroup directory dentry.
>
No.. You've got it right, it disappears after the last dput().
--
Three Cheers,
Balbir
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers
_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel