Re: [PATCH 8/5] llist: Remove cpu_relax() usage in cmpxchg loops

From: Peter Zijlstra
Date: Tue Sep 13 2011 - 10:22:36 EST


On Tue, 2011-09-13 at 14:43 +0300, Avi Kivity wrote:

> Another issue is that hypervisors use PAUSE to detect a spinning guest
> and issue a directed yield to another vcpu. But for cmpxchg loops, the
> "spinner" would just commit on the next loop, no? So I think there's no
> objection from that front.

Right, we shouldn't ever spend a significant amount spinning on a
cmpxchg. If we do we need to fix that instead.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/