Skip to contentSkip to conversation

WorkStruct: Use direct assignment rather than cmpxchg()

PATCH Benjamin Herrenschmidt 1 participant 1 message Dec 9, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines

The problem is where we end up tangling with test_and_set_bit() emulated using spinlocks, and even then it's not a problem _provided_ test_and_set_bit() doesn't attempt to modify the word if the bit was set.

I'm not 100% sure what is the problem there, but beware that bitops don't provide the same semantics as spinlocks regarding memory ordering.

Ben.