Re: [PATCH v3] cgroup: cgroup: drain specific subsystems when mounting/destroying a root

From: Tejun Heo
Date: Sat Aug 16 2025 - 12:16:31 EST


Hello,

On Sat, Aug 16, 2025 at 09:26:59AM +0800, Chen Ridong wrote:
...
> I've tested that adding a dedicated cgroup_offline_wq workqueue for CSS offline operations, which
> could resolve the current issue.
>
> Going further, I propose we split cgroup_destroy_wq into three specialized workqueues to better
> match the destruction lifecycle:
> cgroup_offline_wq - Handles offline operations
> cgroup_release_wq - Manages resource release
> cgroup_free_wq - Performs final memory freeing
>
> This explicit separation would clearly delineate responsibilities for each workqueue.
>
> What are your thoughts on this approach, Tejun?

Yeah, sure. It'd also be helpful to note in a comment why separate
workqueues are used.

Thanks.

--
tejun