|
@@ -97,7 +97,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
|
|
* the mutex state would be.
|
|
* the mutex state would be.
|
|
*/
|
|
*/
|
|
#ifdef __HAVE_ARCH_CMPXCHG
|
|
#ifdef __HAVE_ARCH_CMPXCHG
|
|
- if (likely(atomic_cmpxchg(count, 1, 0)) == 1) {
|
|
|
|
|
|
+ if (likely(atomic_cmpxchg(count, 1, 0) == 1)) {
|
|
smp_mb();
|
|
smp_mb();
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|