Re: [PATCH] locking/ww_mutex: Replace cpu_relax with cond_resched for tests

From: Peter Zijlstra
Date: Tue Feb 28 2017 - 04:49:01 EST


On Tue, Feb 28, 2017 at 09:40:11AM +0000, Chris Wilson wrote:
> When busy-spinning on a ww_mutex_trylock(), we depend upon the other
> thread advancing and releasing the lock. This can not happen on a single
> CPU unless we relinquish it.

Thanks, do you have any clue about those other ww-mutex test fails? So
far I've not had much luck poking at them.