[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191025105654.GG3622521@devbig004.ftw2.facebook.com>
Date: Fri, 25 Oct 2019 03:56:54 -0700
From: Tejun Heo <tj@...nel.org>
To: Namhyung Kim <namhyung@...nel.org>
Cc: Johannes Weiner <hannes@...xchg.org>,
Li Zefan <lizefan@...wei.com>,
LKML <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Song Liu <liu.song.a23@...il.com>
Subject: Re: [PATCH 1/2] cgroup: Add generation number with cgroup id
Hello,
On Fri, Oct 25, 2019 at 06:38:00PM +0900, Namhyung Kim wrote:
> On Fri, Oct 25, 2019 at 5:30 PM Namhyung Kim <namhyung@...nel.org> 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?
Yeah, so, each cgroup has its own css at cgroup->self which has css id
and everything, so I was wondering whether it'd make sense to get rid
of the cgroup id and use cgroup->self.id in its place.
Thanks.
--
tejun
Powered by blists - more mailing lists