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