[PATCH 02/12] powerpc: qspinlock: Mark accesses to qnode lock checks

2023-05-07 Thread Rohan McLure
The powerpc implemenation 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 --- arch/powerpc/lib/qspinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH 02/12] powerpc: qspinlock: Mark accesses to qnode lock checks

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The powerpc implemenation 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. Yeah, and obviously pairs with the WRITE_ONCE so c