powerpc/qspinlock: theft prevention to control latency
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2022 09:59:20 +0000 (19:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:48:49 +0000 (17:48 +1100)
commit0944534ef4d5cf39c8133575524be0be3337dd62
treeac26ea598a9071ed813e7bb32cad7e2aac730058
parent6aa42f883c438ea132a28801bef3f86f3883d14c
powerpc/qspinlock: theft prevention to control latency

Give the queue head the ability to stop stealers. After a number of
spins without successfully acquiring the lock, the queue head sets
this, which halts stealing and will assure it is the next owner.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221126095932.1234527-6-npiggin@gmail.com
arch/powerpc/include/asm/qspinlock_types.h
arch/powerpc/lib/qspinlock.c