Skip to content

locking/rtmutex: Spring cleaning

Thomas Gleixner lkml 2 versions – Applied

Status from this message: The following commit has been merged into the locking/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 1 replyApplied
  2. v114 patches 2 repliesApplied

Changes in v2 from the cover letter

- Fix the fallout reported by 0day and Sebastian
- Make the open coded replacements work for real
- Add the signal cleanup which I missed last time

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/15locking/rtmutex: Remove rt_mutex_timed_lock()include/linux/rtmutex.h kernel/locking/rtmutex.c+0 -490 replies
2/15locking/rtmutex: Remove rtmutex deadlock tester leftoversinclude/linux/rtmutex.h kernel/locking/rtmutex-debug.c kernel/locking/rtmutex-debug.h +3 more+3 -190 replies
3/15locking/rtmutex: Remove output from deadlock detector.include/linux/rtmutex.h kernel/locking/rtmutex-debug.c kernel/locking/rtmutex-debug.h +3 more+1 -1300 replies
4/15locking/rtmutex: Consolidate rt_mutex_init()include/linux/rtmutex.h+3 -90 replies
5/15locking/rtmutex: Remove empty and unused debug stubsinclude/linux/rtmutex.h kernel/locking/rtmutex-debug.c kernel/locking/rtmutex-debug.h +2 more+2 -440 replies
6/15locking/rtmutex: Move rt_mutex_debug_task_free() to rtmutex.ckernel/locking/rtmutex-debug.c kernel/locking/rtmutex.c+8 -60 replies
7/15locking/rtmutex: Inline chainwalk depth checkkernel/locking/rtmutex.c+3 -80 replies
8/15locking/rtmutex: Remove pointless CONFIG_RT_MUTEXES=n stubskernel/locking/rtmutex_common.h+20 -420 replies
9/15locking/rtmutex: Decrapify __rt_mutex_init()kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h+11 -60 replies
10/15locking/rtmutex: Move debug functions as inlines into common headerkernel/locking/Makefile kernel/locking/rtmutex-debug.c kernel/locking/rtmutex-debug.h +2 more+25 -1190 replies
11/15locking/rtmutex: Make text section and inlining consistentkernel/locking/rtmutex.c+76 -760 replies
12/15locking/rtmutex: Consolidate the fast/slowpath invocationkernel/locking/rtmutex.c+59 -850 replies
13/15locking/rtmutex: Fix misleading comment in rt_mutex_postunlock()kernel/locking/rtmutex.c+1 -10 replies
14/15locking/rtmutex: Restrict the trylock WARN_ON() to debugkernel/locking/rtmutex.c+1 -10 replies
15/15locking/rtmutex: Cleanup signal handling in __rt_mutex_slowlock()kernel/locking/rtmutex.c+7 -120 replies

Reviews trailers per patch

None of the 15 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)
SeriesA-b
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [patch V2 00/15] locking/rtmutex: Spring cleaning

This is V2 of this cleanup. V1 can be found here:

https://lore.kernel.org/r/[email protected]

While working on the rtmutex related RT bits we noticed quite some inconsistencies and bitrot in the rtmutex code.

The series is based on

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core

and also available from:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex

as a combo.

Changes vs. V1:
- Fix the fallout reported by 0day and Sebastian
- Make the open coded replacements work for real
- Add the signal cleanup which I missed last time

Thanks,

tglx

---
 a/kernel/locking/rtmutex-debug.c |  182 -----------------
 a/kernel/locking/rtmutex-debug.h |   37 ---
 a/kernel/locking/rtmutex.h       |   35 ---
 include/linux/rtmutex.h          |   35 ---
 kernel/locking/Makefile          |    2 
 kernel/locking/rtmutex.c         |  402 ++++++++++++++-------------------------
 kernel/locking/rtmutex_common.h  |  104 +++++-----
 7 files changed, 202 insertions(+), 595 deletions(-)