Re: [PATCH] workqueue: rust: add creation of workqueues
From: Tejun Heo
Date: Thu Apr 17 2025 - 16:39:56 EST
Hello,
On Thu, Apr 17, 2025 at 10:26:04PM +0200, Alice Ryhl wrote:
...
> But doesn't that have a cleanup problem? If the work item owns an
> allocation or a refcount that's cleared by the work item's run
> function, then using cancel_delayed_work_sync() will fail to clean
> that up. Whereas flush_delayed_work() avoids this problem.
True, especially for self-freeing work items. flush it is, I suppose.
Thanks.
--
tejun