On Thu, Aug 06, 2015 at 09:36:23PM +0000, Patrick Farrell wrote:
Perhaps I am confused or better versions of these primitives have
made my understanding outmoded, but isn't it reasonable when a lock is expected to be
held for a very short time to use a spin lock? Something like a single list manipulation
seems like a great candidate for spinning instead of sleeping.
At the least, mutexes are not always better than spinlocks, so a swap without a context
specific explanation of why seems wrong.
Thoughts from others?
The patch is useless, ignore it :)