An error occurred while fetching folder content.
locking/rtmutex: Fix incorrect condition in rtmutex_spin_on_owner()
Zqiang authored
Optimistic spinning needs to be terminated when the spinning waiter is not
longer the top waiter on the lock, but the condition is negated. It
terminates if the waiter is the top waiter, which is defeating the whole
purpose.

Fixes: c3123c43

 ("locking/rtmutex: Dont dereference waiter lockless")
Signed-off-by: default avatarZqiang <qiang1.zhang@intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211217074207.77425-1-qiang1.zhang@intel.com
8f556a32
Name Last commit Last update