Message ID | 163982167017.23020.3158863463249807527.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [tip:,locking/core] locking/rtmutex: Fix incorrect condition in rtmutex_spin_on_owner() | expand |
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index 0c6a48d..1f25a4d 100644 --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -1380,7 +1380,7 @@ static bool rtmutex_spin_on_owner(struct rt_mutex_base *lock, * - the VCPU on which owner runs is preempted */ if (!owner->on_cpu || need_resched() || - rt_mutex_waiter_is_top_waiter(lock, waiter) || + !rt_mutex_waiter_is_top_waiter(lock, waiter) || vcpu_is_preempted(task_cpu(owner))) { res = false; break;