aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNicholas Piggin <[email protected]>2022-11-26 19:59:27 +1000
committerMichael Ellerman <[email protected]>2022-12-02 17:48:50 +1100
commitf61ab43cc1a6146d6eef7e0713a452c3677ad13e (patch)
tree5c492373691342daebbb8422523b23aed23a3171 /net/lapb/lapb_timer.c
parentbe742c573fdafcfa1752642ca1c7aaf08c258128 (diff)
powerpc/qspinlock: allow lock stealing in trylock and lock fastpath
This change allows trylock to steal the lock. It also allows the initial lock attempt to steal the lock rather than bailing out and going to the slow path. This gives trylock more strength: without this a continually-contended lock will never permit a trylock to succeed. With this change, the trylock has a small but non-zero chance. It also gives the lock fastpath most of the benefit of passing the reservation back through to the steal loop in the slow path without the complexity. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions