Re: [PATCH v2 4/4] mutex: Optimize mutex trylock slowpath

2014-06-12 Thread Davidlohr Bueso
On Wed, 2014-06-11 at 11:37 -0700, Jason Low wrote: > The mutex_trylock() function calls into __mutex_trylock_fastpath() when > trying to obtain the mutex. On 32 bit x86, in the !__HAVE_ARCH_CMPXCHG > case, __mutex_trylock_fastpath() calls directly into > __mutex_trylock_slowpath() > regardless of

[PATCH v2 4/4] mutex: Optimize mutex trylock slowpath

2014-06-11 Thread Jason Low
The mutex_trylock() function calls into __mutex_trylock_fastpath() when trying to obtain the mutex. On 32 bit x86, in the !__HAVE_ARCH_CMPXCHG case, __mutex_trylock_fastpath() calls directly into __mutex_trylock_slowpath() regardless of whether or not the mutex is locked. In __mutex_trylock_slowpa