diff options
author | 2021-09-28 17:00:05 +0200 | |
---|---|---|
committer | 2021-10-01 13:57:52 +0200 | |
commit | 8fe46535e10dbfebad68ad9f2f8260e49f5852c9 (patch) | |
tree | 61f75ddf6d378281b629f1390583cc67a54fba7d /scripts/mod/file2alias.c | |
parent | locking/rt: Take RCU nesting into account for __might_resched() (diff) | |
download | wireguard-linux-8fe46535e10dbfebad68ad9f2f8260e49f5852c9.tar.xz wireguard-linux-8fe46535e10dbfebad68ad9f2f8260e49f5852c9.zip |
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
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions