[ofw] [PATCH] dapl: fix ring buffer synchronization

Davis, Arlin R arlin.r.davis at intel.com
Sat Mar 6 16:21:56 PST 2010


 
>The dapl ring buffer implementation is not thread safe.  Replace
>the use of atomic variables with actual locking to ensure that
>there are not races inserting and/or removing items at the same time.
>
>Without proper synchronization, the EVD can report invalid events or
>the same event multiple times.
>

Event synchronization is provided with EVD locking around every rbuf_ call.
Did you find a case that is missing locking?

-arlin



More information about the ofw mailing list