Re: [PATCH 3/5] locking/rtmutex: Use acquire/release semantics

From: Davidlohr Bueso
Date: Tue Sep 22 2015 - 11:55:58 EST


On Tue, 22 Sep 2015, Thomas Gleixner wrote:

@@ -121,11 +130,14 @@ static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock)
* lock(wait_lock);
* acquire(lock);
*/
- return rt_mutex_cmpxchg(lock, owner, NULL);
+ return rt_mutex_cmpxchg_acquire(lock, owner, NULL);

Why is this acquire?

Because I am an idiot, that should be a release...

Thanks,
Davidlohr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/