[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130812133904.GA15892@htj.dyndns.org>
Date: Mon, 12 Aug 2013 09:39:04 -0400
From: Tejun Heo <tj@...nel.org>
To: Li Zefan <lizefan@...wei.com>
Cc: containers@...ts.linux-foundation.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 07/14] cgroup: reorganize css init / exit paths
On Mon, Aug 12, 2013 at 10:47:33AM +0800, Li Zefan wrote:
> > + /* each css holds a ref to the cgroup and the parent css */
> > dget(dentry);
> > percpu_ref_get(&css->parent->refcnt);
>
> We called dget() and percpu_ref_get() for each css unconditionally...
>
> > - }
> >
> > - /* hold a ref to the parent's dentry */
> > - dget(parent->dentry);
> > -
> > - /* creation succeeded, notify subsystems */
> > - for_each_root_subsys(root, ss) {
> > - err = online_css(ss, cgrp);
> > + /* creation succeeded, notify subsystems */
> > + err = online_css(css);
> > if (err)
> > goto err_destroy;
>
> but now dget() and percpu_ref_get() may not be called for some css's,
> but the code in failure path is not updated accordingly, which seems
> wrong.
Heh, yeah, brainfart. Will post the updated version.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists