[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <161703504815.29796.10410853523682764877.tip-bot2@tip-bot2>
Date: Mon, 29 Mar 2021 16:24:08 -0000
From: "tip-bot2 for Thomas Gleixner" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: locking/core] locking/rtmutex: Fix misleading comment in
rt_mutex_postunlock()
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 82cd5b1039e26b1b1254886464991e34de439ac5
Gitweb: https://git.kernel.org/tip/82cd5b1039e26b1b1254886464991e34de439ac5
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Fri, 26 Mar 2021 16:29:42 +01:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Mon, 29 Mar 2021 15:57:04 +02:00
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 <tglx@...utronix.de>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://lore.kernel.org/r/20210326153944.341734608@linutronix.de
---
kernel/locking/rtmutex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c
index 7d0c168..512b400 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();
}
Powered by blists - more mailing lists