[openstack-dev] [oslo] Issues with POSIX semaphores and other locks in lockutils

Angus Lees gus at inodes.org
Wed Aug 20 06:40:59 UTC 2014


On Mon, 18 Aug 2014 10:05:28 PM Pádraig Brady wrote:
> On 08/18/2014 03:38 PM, Julien Danjou wrote:
> > On Thu, Aug 14 2014, Yuriy Taraday wrote:
> > 
> > Hi Yuriy,
> > 
> > […]
> > 
> >> Looking forward to your opinions.
> > 
> > This looks like a good summary of the situation.
> > 
> > I've added a solution E based on pthread, but didn't get very far about
> > it for now.
> 
> In my experience I would just go with the fcntl locks.
> They're auto unlocked and well supported, and importantly,
> supported for distributed processes.
> 
> I'm not sure how problematic the lock_path config is TBH.
> That is adjusted automatically in certain cases where needed anyway.
> 
> Pádraig.

I added a "C2" (fcntl locks on byte ranges) option to the etherpad that I 
believe addresses all the issues raised.    I must be missing something 
because it seems too obvious to have not been considered before :/

-- 
 - Gus



More information about the OpenStack-dev mailing list