Re: [PATCH 1/2] cgroup: Add generation number with cgroup id

From: Namhyung Kim
Date: Fri Oct 25 2019 - 05:38:14 EST


On Fri, Oct 25, 2019 at 5:30 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> > > /*
> > > * A cgroup_root represents the root of a cgroup hierarchy, and may be
> > > * associated with a kernfs_root to form an active hierarchy. This is
> > > @@ -521,7 +529,7 @@ struct cgroup_root {
> > > unsigned int flags;
> > >
> > > /* IDs for cgroups in this hierarchy */
> > > - struct idr cgroup_idr;
> > > + struct cgroup_idr cgroup_idr;
> >
> > Given that there's cgroup->self css, can we get rid of the above?
>
> I don't follow. Do you want to remove cgroup_idr and share the
> css_idr for cgroup id?

Or, you don't want to add cgroup_idr struct and use idr directly?

Thanks
Namhyung