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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 20, 2021 at 01:40:21PM +0800, Boqun Feng wrote:
> * A work item instance will not be processed by multiple workers at the
>   same time, i.e. it's non-reentrant, so requeuing the same instance of
>   a work item is safe and not racy.  Operations considered as changing
>   the work item to a different instance are: 1) change the work
>   function, 2) queue the work item to a different workqueue, or 3)
>   reinitiate the work item.  The non-reentrance guarantee doesn't hold
>   for different work item instances.

Yeah, I prefer it to be described this way but it's not a strong opinion.
Looks good to me either way.

Thanks.

-- 
tejun



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux