locking/rtmutex: Fix misleading comment in rt_mutex_postunlock()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 26 Mar 2021 15:29:42 +0000 (16:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Mar 2021 13:57:04 +0000 (15:57 +0200)
Preemption is disabled in mark_wakeup_next_waiter(,) not in
rt_mutex_slowunlock().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210326153944.341734608@linutronix.de
kernel/locking/rtmutex.c

index 7d0c168710330e284aa8b8d3c4003dee105b1737..512b400bd96188ef4ab2bc45027df1000117b428 100644 (file)
@@ -1305,7 +1305,7 @@ void __sched rt_mutex_postunlock(struct wake_q_head *wake_q)
 {
        wake_up_q(wake_q);
 
-       /* Pairs with preempt_disable() in rt_mutex_slowunlock() */
+       /* Pairs with preempt_disable() in mark_wakeup_next_waiter() */
        preempt_enable();
 }