aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/rtmutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/rtmutex.c')
-rw-r--r--kernel/locking/rtmutex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c
index 0e641eb473de..b95509416909 100644
--- a/kernel/locking/rtmutex.c
+++ b/kernel/locking/rtmutex.c
@@ -1581,13 +1581,13 @@ bool __sched __rt_mutex_futex_unlock(struct rt_mutex *lock,
1581 return false; /* done */ 1581 return false; /* done */
1582 } 1582 }
1583 1583
1584 mark_wakeup_next_waiter(wake_q, lock);
1585 /* 1584 /*
1586 * We've already deboosted, retain preempt_disabled when dropping 1585 * We've already deboosted, mark_wakeup_next_waiter() will
1587 * the wait_lock to avoid inversion until the wakeup. Matched 1586 * retain preempt_disabled when we drop the wait_lock, to
1588 * by rt_mutex_postunlock(); 1587 * avoid inversion prior to the wakeup. preempt_disable()
1588 * therein pairs with rt_mutex_postunlock().
1589 */ 1589 */
1590 preempt_disable(); 1590 mark_wakeup_next_waiter(wake_q, lock);
1591 1591
1592 return true; /* call postunlock() */ 1592 return true; /* call postunlock() */
1593} 1593}