[PATCH 06/17] futex: Change locking rules

2018-11-09 Thread Henrik Austad
From: Peter Zijlstra commit 734009e96d1983ad739e5b656e03430b3660c913 upstream. Currently futex-pi relies on hb->lock to serialize everything. But hb->lock creates another set of problems, especially priority inversions on RT where hb->lock becomes a rt_mutex itself. The rt_mutex::wait_lock is

[PATCH 06/17] futex: Change locking rules

2018-11-09 Thread Henrik Austad
From: Peter Zijlstra commit 734009e96d1983ad739e5b656e03430b3660c913 upstream. Currently futex-pi relies on hb->lock to serialize everything. But hb->lock creates another set of problems, especially priority inversions on RT where hb->lock becomes a rt_mutex itself. The rt_mutex::wait_lock is