On Fri, 12 Feb 2016, Davidlohr Bueso wrote:
This can be a really hot path, could we get rid of the waiter check and just introduce mutex_tro_to_acquire_waiter() or such and set the counter to -1 there?
Ah nm, I just realized why you do this :) For a second I thought that you called into this directly from __mutex_lock_common.