[PATCH 0/6] locking/rtmutex: Avoid PI state recursion through sched_submit_work()

From: Peter Zijlstra
Date: Tue Aug 15 2023 - 07:18:38 EST


Hi!

This is basically the 'same' patches as send earlier by Sebastian here:

https://lkml.kernel.org/r/20230427111937.2745231-1-bigeasy@xxxxxxxxxxxxx

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.