Skip to content

Commit 909e1d1

Browse files
committed
Merge tag 'locking_urgent_for_v5.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fix from Borislav Petkov: - Fix the rtmutex condition checking when the optimistic spinning of a waiter needs to be terminated * tag 'locking_urgent_for_v5.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/rtmutex: Fix incorrect condition in rtmutex_spin_on_owner()
2 parents c36d891 + 8f556a3 commit 909e1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/locking/rtmutex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ static bool rtmutex_spin_on_owner(struct rt_mutex_base *lock,
13801380
* - the VCPU on which owner runs is preempted
13811381
*/
13821382
if (!owner->on_cpu || need_resched() ||
1383-
rt_mutex_waiter_is_top_waiter(lock, waiter) ||
1383+
!rt_mutex_waiter_is_top_waiter(lock, waiter) ||
13841384
vcpu_is_preempted(task_cpu(owner))) {
13851385
res = false;
13861386
break;

0 commit comments

Comments
 (0)