Re: [bug report] cgroup: Honor caller's cgroup NS when resolving path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Wed, Aug 31, 2022 at 11:00:42AM +0200, Michal Koutný wrote:
> +/*
> + * Returned cgroup is without refcount but it's valid as long as cset pins it.
> + */
>  static inline struct cgroup *__cset_cgroup_from_root(struct css_set *cset,
>  					    struct cgroup_root *root)

Yeah but what prevents the task from migrating away unpinning the whole
thing? Can you just get the ref on the cgroup before releasing css_set?
That's not an expensive operation and a lot more straightforward.

Thanks.

-- 
tejun



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux