Re: [PATCH] cgroup: minor tweak for logic to get cgroup css

From: Tejun Heo
Date: Mon Jul 08 2019 - 13:31:42 EST


On Mon, Jul 08, 2019 at 05:29:49PM +0000, Roman Gushchin wrote:
> On Mon, Jul 08, 2019 at 09:42:43AM -0700, Tejun Heo wrote:
> > On Wed, Jul 03, 2019 at 10:07:49AM +0800, Peng Wang wrote:
> > > We could only handle the case that css exists
> > > and css_try_get_online() fails.
> >
> > As css_tryget_online() can't handle NULL input, this is a bug fix.
> > Can you please clarify that in the description?
>
> - if (!css || !css_tryget_online(css))
> + if (css && !css_tryget_online(css))
>
> If css == NULL, !css is true, and the second part of the || statement
> will not be evaluated. So it's not a bug fix.

Ah right, it's just confusing. Will apply after the merge window.

Thanks.

--
tejun