Re: [PATCH v2 1/4] locking/mutex: Add waiter parameter to mutex_optimistic_spin()
From: Davidlohr Bueso
Date: Fri Feb 12 2016 - 17:09:17 EST
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.