locking fixes for 3.16
Linus,
please pull the latest locking-urgent-for-linus.patch git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus.patch
Another three patches to make the rtmutex code more robust. That's the last urgent fallout from the big futex/rtmutex investigation.
Thanks,
tglx
------------------>
Thomas Gleixner (3):
rtmutex: Handle deadlock detection smarter
rtmutex: Detect changes in the pi lock chain
rtmutex: Plug slow unlock race
kernel/locking/rtmutex-debug.h | 5 + kernel/locking/rtmutex.c | 243 +++++++++++++++++++++++++++++++++++------ kernel/locking/rtmutex.h | 5 + 3 files changed, 218 insertions(+), 35 deletions(-)
kernel/locking/rtmutex-debug.h +5 -0
@@ -31,3 +31,8 @@ static inline int debug_rt_mutex_detect_deadlock(struct rt_mutex_waiter *waiter, {return (waiter !=NULL ); } + +static inline void rt_mutex_print_deadlock (struct rt_mutex_waiter *w) +{ +debug_rt_mutex_print_deadlock (w); +}
kernel/locking/rtmutex.c +208 -35
417 lines not on this page · raw message
kernel/locking/rtmutex.h +5 -0
@@ -24,3 +24,8 @@#define debug_rt_mutex_print_deadlock (w) do { } while (0)#define debug_rt_mutex_detect_deadlock (w,d) (d)#define debug_rt_mutex_reset_waiter (w) do { } while (0) + +static inline void rt_mutex_print_deadlock (struct rt_mutex_waiter *w) +{ +WARN (1 ,"rtmutex deadlock detected\n" ); +}