powerpc/qspinlock: don't propagate the not-sleepy state
authorNicholas Piggin <npiggin@gmail.com>
Mon, 16 Oct 2023 12:43:03 +0000 (22:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Oct 2023 11:43:34 +0000 (22:43 +1100)
commitfcf77d44274b96a55cc74043561a4b3151b9ad24
tree41e537e792d616948c399cfffe1a54147276d7ee
parentfd8fae50c9c6117c4e05954deab2cc515508666b
powerpc/qspinlock: don't propagate the not-sleepy state

To simplify things, don't propagate the not-sleepy condition back down
the queue. Instead, have the waiters clear their own node->sleepy when
finding the lock owner is not preempted.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Shrikanth Hegde <sshegde@linux.vnet.ibm.com>
Reviewed-by: "Nysal Jan K.A" <nysal@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231016124305.139923-5-npiggin@gmail.com
arch/powerpc/lib/qspinlock.c