Re: [PATCH] workqueue: doc: Call out the non-reentrance conditions
From: Tejun Heo <tj@kernel.org>
Date: 2021-10-19 17:48:00
Also in:
lkml
From: Tejun Heo <tj@kernel.org>
Date: 2021-10-19 17:48:00
Also in:
lkml
On Mon, Oct 18, 2021 at 09:31:17AM +0800, Boqun Feng wrote:
+Workqueue guarantees that a work item cannot be re-entrant if the following +conditions hold after a work item gets queued: + + 1. The work function hasn't been changed. + 2. No one queues the work item to another workqueue. + 3. The work item hasn't been reinitiated.
Maybe phrasing it so that the above are the conditions defining a work item to be the same instance would be clearer? Thanks. -- tejun