powerpc: qspinlock: Mark accesses to qnode lock checks
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 10 May 2023 03:31:07 +0000 (13:31 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Jun 2023 05:13:57 +0000 (15:13 +1000)
commit03d44ee80eac980a869ed3d5637ed85de6fb957f
tree0891e2bd7c86989a5359ce1386b7430dfc7b897d
parent98e61df570f06e8a2a2152bb3485c60fe1b148cb
powerpc: qspinlock: Mark accesses to qnode lock checks

The powerpc implementation of qspinlocks will both poll and spin on the
bitlock guarding a qnode. Mark these accesses with READ_ONCE to convey
to KCSAN that polling is intentional here.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230510033117.1395895-2-rmclure@linux.ibm.com
arch/powerpc/lib/qspinlock.c