Re: [PATCH v3 1/2] rust: workqueue: restrict delayed work to global wqs
From: Tejun Heo
Date: Fri Feb 27 2026 - 14:46:29 EST
On Fri, Feb 27, 2026 at 07:28:11PM +0000, Alice Ryhl wrote:
> > delayed_work is just pointing to the wq pointer. On destroy_workqueue(), we
> > can shut it down and free all the supporting stuff while leaving zombie wq
> > struct which noops execution and let the whole thing go away when refs reach
> > zero?
>
> But isn't that a problem for e.g. self-freeing work? If we don't run the
> work, then its memory is just leaked.
Yeah, good point. Maybe we should just keep the whole thing up while
removing it from sysfs. Would that work?
Thanks.
--
tejun