Re: [PATCH] ARC: remove redundant READ_ONCE() in cmpxchg loop

2022-04-18 Thread Vineet Gupta
On 3/18/22 19:03, Bang Li wrote: This patch reverts commit 7082a29c22ac ("ARC: use ACCESS_ONCE in cmpxchg loop"). It is not necessary to use READ_ONCE() because cmpxchg contains barrier. We can get it from commit d57f727264f1 ("ARC: add compiler barrier to LLSC based cmpxchg").

[PATCH] ARC: remove redundant READ_ONCE() in cmpxchg loop

2022-03-18 Thread Bang Li
This patch reverts commit 7082a29c22ac ("ARC: use ACCESS_ONCE in cmpxchg loop"). It is not necessary to use READ_ONCE() because cmpxchg contains barrier. We can get it from commit d57f727264f1 ("ARC: add compiler barrier to LLSC based cmpxchg"). Signed-off-by: Bang Li --- arch/arc/kernel/smp.c