Christoph Lameter wrote: > Could decomplicate this? Just use acquire / release and avoid the > additional intrinsics. The purpose is first of all correctness. Then we > can add some whiz bang on top. Also please sent patches inline not as > attachments. I could have misunderstood what you wrote yesterday: >>Could you consider using some cache hints, like "ld8.bias.nta"? >>"bias" is a hint to acquire exclusive ownership. >>"nta" is a hint to allocate the cache line only in L2 >>(and side effect: to bias it to be replaced). >>All of the Itanium 2 processor's atomic instructions are handled >>exclusively by the L2 cache. > > Could you come up with a patch? Currently, I do not seem to be able to > spend enough time on it. I thought you had asked for both the correct fencing and the cache hints. Thanks, Zoltan