locking/rtmutex: Clean up signal handling in __rt_mutex_slowlock()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 26 Mar 2021 15:29:44 +0000 (16:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Mar 2021 13:57:05 +0000 (15:57 +0200)
commita51a327f3bcdcb1a37ed9325ad07e1456cd4d426
treea2ce5dfc355e3bf737fc8be0e0661ba40f2f46ec
parentc2c360ed7f28fd6b7eb7e39e70af2d2ae405f466
locking/rtmutex: Clean up signal handling in __rt_mutex_slowlock()

The signal handling in __rt_mutex_slowlock() is open coded.

Use signal_pending_state() instead.

Aside of the cleanup this also prepares for the RT lock substituions which
require support for TASK_KILLABLE.

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.533811987@linutronix.de
kernel/locking/rtmutex.c