linux/kernel/locking
Mike Galbraith faa7968040 locking: ww_mutex: fix ww_mutex vs self-deadlock
If the caller already holds the mutex, task_blocks_on_rt_mutex()
returns -EDEADLK, we proceed directly to rt_mutex_handle_deadlock()
where it's instant game over.

Let ww_mutexes return EDEADLK/EALREADY as they want to instead.

Cc: stable-rt@vger.kernel.org
Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2020-10-14 00:59:24 +03:00
..
Makefile rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00
lglock.c stomp-machine: create lg_global_trylock_relax() primitive 2020-10-14 00:59:18 +03:00
lockdep.c lockdep-rt.patch 2020-10-14 00:59:15 +03:00
lockdep_internals.h locking: Move the lockdep code to kernel/locking/ 2013-11-06 07:55:08 +01:00
lockdep_proc.c lockdep/proc: Fix lock-time avg computation 2013-11-11 12:41:34 +01:00
lockdep_states.h locking: Move the lockdep code to kernel/locking/ 2013-11-06 07:55:08 +01:00
mutex-debug.c mutexes: Give more informative mutex warning in the !lock->owner case 2013-12-17 15:35:10 +01:00
mutex-debug.h locking: Move the mutex code to kernel/locking/ 2013-11-06 07:55:07 +01:00
mutex.c locking/doc: Update references to kernel/mutex.c 2013-11-11 12:41:33 +01:00
mutex.h locking: Move the mutex code to kernel/locking/ 2013-11-06 07:55:07 +01:00
percpu-rwsem.c percpu-rwsem: compile fix 2020-10-14 00:59:17 +03:00
rt.c Revert "rwsem-rt: Do not allow readers to nest" 2020-10-14 00:59:24 +03:00
rtmutex-debug.c rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex-debug.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex-tester.c rtmutex: Confine deadlock logic to futex 2020-10-14 00:59:23 +03:00
rtmutex.c locking: ww_mutex: fix ww_mutex vs self-deadlock 2020-10-14 00:59:24 +03:00
rtmutex.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex_common.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rwsem-spinlock.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
rwsem-xadd.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
rwsem.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
semaphore.c locking: Move the semaphore core to kernel/locking/ 2013-11-06 07:55:22 +01:00
spinlock.c rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00
spinlock_debug.c rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00