locking/rtmutex: Avoid PI state recursion through sched_submit_work()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | sched: Constrain locks in sched_submit_work()kernel/ | +9 | 0 replies | |
| 2/6 | locking/rtmutex: Avoid unconditional slowpath for DEBUG_RT_MUTEXESkernel/ kernel/ | +21 | 0 replies | |
| 3/6 | sched: Extract __schedule_loop()kernel/ | +11 | 8 replies | |
| 4/6 | sched: Provide rt_mutex specific scheduler helpersinclude/ include/ kernel/ | +39 | 0 replies | |
| 5/6 | locking/rtmutex: Use rt_mutex specific scheduler helperskernel/ kernel/ kernel/ +1 more | +25 | 0 replies | |
| 6/6 | locking/rtmutex: Add a lockdep assert to catch potential nested blockingkernel/ kernel/ kernel/ | +6 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by.
| Patch | Thomas Gleixner |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | Originally-by |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] locking/rtmutex: Avoid PI state recursion through sched_submit_work()
Hi!
This is basically the 'same' patches as send earlier by Sebastian here:
https://lkml.kernel.org/r/[email protected]
I spend a number of days trying to invert rtmutex, only to make a giant mess of things and finally conceded that this is the least horrible approach.
There's a bunch of naming differences and I added some asserts that should hopefully avoid things from going sideways without notice. I've also updated the changelogs to high-light the actual problem. The whole pi_blocked_on 'corruption' is a mere consequence of the more fundamental problem that the whole PI state recurses.
I've not tested this with the rest of the RT patches stuck on, so very limited actual testing happened.
If anybody could please confirm stuff still works as advertised, I'll go queue this mess and we can hopefully forget all about it.