[Openais] [PATCH 0/2] netmalloc work in progress

Steven Dake sdake at redhat.com
Fri Mar 25 09:01:06 PDT 2011


On 03/25/2011 06:14 AM, Russell Bryant wrote:
> On Fri, Mar 25, 2011 at 12:10 AM, Steven Dake <sdake at redhat.com> wrote:
>> On 03/24/2011 06:56 PM, Zane Bitter wrote:
>>>
>>> Did we reach a consensus on whether locking is required on the free list or
>>> if TLS is sufficient?
>>>
>>
>> Locking is required - allocation can happen in totemsrp_mcast in thread
>> A while free can occur in message_handler_orf_token (via messages_free)
>> in thread B.
> 
> So, TLS should be used then?  Wouldn't locking on a free list be worse
> than no free list at all?
> 

When I said locking, what i meant is mutual exclusion, so yes, tls would
likely be the best choice.

Regards
-steve


> --
> Russell Bryant



More information about the Openais mailing list