commit | 3456a78e64fe8b18e3743ec8aee21b6b30ccaa8f | [log] [tgz] |
---|---|---|
author | Mike Galbraith <umgwanakikbuti@gmail.com> | Thu Feb 26 09:02:05 2015 +0100 |
committer | Anders Roxell <anders.roxell@linaro.org> | Fri Jun 26 22:31:43 2015 +0200 |
tree | e80373649399c05c1385e0a7d2ccaed6ec97b6ec | |
parent | cfd781c8651e2fb0728d10b78ad65283fd7cc368 [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>