Re: [PATCH] workqueue: doc: Call out the non-reentrance conditions

From: Tejun Heo
Date: Tue Oct 19 2021 - 13:48:01 EST


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