diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-03-26 18:29:42 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-29 16:57:04 +0300 |
commit | 82cd5b1039e26b1b1254886464991e34de439ac5 (patch) | |
tree | 2ad00f6b1a085ac9899a78d512dc43a538f7dbe7 /kernel/locking/rtmutex.c | |
parent | 70c80103aafdeae99126694bc1cd54de016bc258 (diff) | |
download | linux-82cd5b1039e26b1b1254886464991e34de439ac5.tar.xz |
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@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
Diffstat (limited to 'kernel/locking/rtmutex.c')
-rw-r--r-- | kernel/locking/rtmutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |