diff options
author | Mike Galbraith <umgwanakikbuti@gmail.com> | 2015-02-26 09:02:05 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2015-06-01 12:03:37 +0200 |
commit | 2a48b7a55e80abcb26a7e0f37437199fa7733186 (patch) | |
tree | 414fc5f471f3db76fb0a25e842860c7c3a0fc701 /lib/locking-selftest.c | |
parent | 8281e990b1360c55798223cc914ad12d5142a82a (diff) |
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>
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions