From: Thomas Gleixner Date: Fri, 26 Mar 2021 15:29:42 +0000 (+0100) Subject: locking/rtmutex: Fix misleading comment in rt_mutex_postunlock() X-Git-Tag: io_uring-5.13-2021-05-07~36^2~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=82cd5b1039e26b1b1254886464991e34de439ac5;p=linux-block.git locking/rtmutex: Fix misleading comment in rt_mutex_postunlock() Preemption is disabled in mark_wakeup_next_waiter(,) not in rt_mutex_slowunlock(). Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210326153944.341734608@linutronix.de --- diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index 7d0c16871033..512b400bd961 100644 --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -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(); }