Re: [PATCH v2 1/2] rust: workqueue: restrict delayed work to global wqs
From: Alice Ryhl
Date: Thu Nov 13 2025 - 05:08:52 EST
On Thu, Nov 13, 2025 at 11:06 AM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Thu, Nov 13, 2025 at 11:01 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
> >
> > When a workqueue is shut down, delayed work that is pending but not
> > scheduled does not get properly cleaned up, so it's not safe to use
> > `enqueue_delayed` on a workqueue that might be destroyed. To fix this,
> > restricted `enqueue_delayed` to static queues.
>
> Should this have a Fixes and Cc: stable?
I could go either way. Without the next patch, there's no way to use a
non-global workqueue. But probably is useful to backport anyway and
there's certainly no harm.
Alice