[openib-general] [PATCH] opensm: make cl_atomic functions atomic
Fabian Tillier
ftillier at silverstorm.com
Sun Mar 5 16:23:55 PST 2006
On 3/2/06, Sasha Khapyorsky <sashak at voltaire.com> wrote:
> Hello,
>
> complib's cl_atomic_() functions are not atomic in current implementation,
> they use static per function locks so race is possible between different
> functions (for example between _inc() and _dec()). Such races are pretty
> reproducible in practice - for example it is used to inc/decrement mad
> counters in opensm.
Why aren't we using atomic operations here? Does Linux not support
atomic increment/decrement in user-mode?
- Fab
More information about the general
mailing list