[PATCH -rt] rtmutex: enable deadlock detection in ww_mutex_lock functions

2015-01-27 Thread Gustavo Bittencourt
According the ww-mutex-design.txt documentation, the ww_mutex_lock_interruptible and ww_mutex_lock functions should return -EDEADLK when faced with a deadlock. To do so, the detect_deadlock flag in the rt_mutex_slowlock calls should be enabled. This patch corrects potential deadlocks when running

[PATCH -rt] rtmutex: enable deadlock detection in ww_mutex_lock functions

2015-01-27 Thread Gustavo Bittencourt
According the ww-mutex-design.txt documentation, the ww_mutex_lock_interruptible and ww_mutex_lock functions should return -EDEADLK when faced with a deadlock. To do so, the detect_deadlock flag in the rt_mutex_slowlock calls should be enabled. This patch corrects potential deadlocks when running