diff options
author | Steven Rostedt <[email protected]> | 2021-08-15 23:29:25 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-08-17 19:06:11 +0200 |
commit | 992caf7f17243d736fc996770bac6566103778f6 (patch) | |
tree | b3782229183ce8c5a02f24d1f28590b7a1f517fe /net/lapb/lapb_subr.c | |
parent | 48eb3f4fcfd35495a8357459aa6fe437aa430b00 (diff) |
locking/rtmutex: Add adaptive spinwait mechanism
Going to sleep when locks are contended can be quite inefficient when the
contention time is short and the lock owner is running on a different CPU.
The MCS mechanism cannot be used because MCS is strictly FIFO ordered while
for rtmutex based locks the waiter ordering is priority based.
Provide a simple adaptive spinwait mechanism which currently restricts the
spinning to the top priority waiter.
[ tglx: Provide a contemporary changelog, extended it to all rtmutex based
locks and updated it to match the other spin on owner implementations ]
Originally-by: Gregory Haskins <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions