rtmutex: Check explicit for TASK_RTLOCK_WAIT.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 28 Sep 2021 15:00:05 +0000 (17:00 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 1 Oct 2021 11:57:52 +0000 (13:57 +0200)
commit8fe46535e10dbfebad68ad9f2f8260e49f5852c9
tree61f75ddf6d378281b629f1390583cc67a54fba7d
parentef1f4804b27a54da34de6984d16f1fe8f2cc7011
rtmutex: Check explicit for TASK_RTLOCK_WAIT.

rt_mutex_wake_q_add() needs to  need to distiguish between sleeping
locks (TASK_RTLOCK_WAIT) and normal locks which use TASK_NORMAL to use
the proper wake mechanism.

Instead of checking for != TASK_NORMAL make it more robust and check
explicit for TASK_RTLOCK_WAIT which is the reason why a different wake
mechanism is used.

No functional change.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210928150006.597310-2-bigeasy@linutronix.de
kernel/locking/rtmutex.c