Re: [PATCH 6/6] Documentation/memory-barriers.txt: Clarify cmpxchg()

From: Davidlohr Bueso
Date: Mon Oct 14 2019 - 21:28:49 EST


On Sat, 12 Oct 2019, Manfred Spraul wrote:
Invalid would be:
smp_mb__before_atomic();
atomic_set();

fyi I've caught a couple of naughty users:

drivers/crypto/cavium/nitrox/nitrox_main.c
drivers/gpu/drm/msm/adreno/a5xx_preempt.c

Thanks,
Davidlohr