RISC-V: Resurrect smp_mb__after_spinlock()
authorPalmer Dabbelt <palmer@sifive.com>
Wed, 6 Dec 2017 01:48:11 +0000 (17:48 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 11 Dec 2017 15:51:07 +0000 (07:51 -0800)
commit3cfa5008081db845c6c53d531ec34e9c84a9fd99
tree805a705c5ab4544fe0bb8402a21433805a502f7e
parent86ad5c97ce5ccdda1459d35370fd5e105721bb8d
RISC-V: Resurrect smp_mb__after_spinlock()

I removed this last week because of an incorrect comment:
smp_mb__after_spinlock() is actually still used, and is necessary on
RISC-V.  It's been resurrected, with a comment that describes what it
actually does this time.  Thanks to Andrea for finding the bug!

Fixes: 3343eb6806f3 ("RISC-V: Remove smb_mb__{before,after}_spinlock()")
CC: Andrea Parri <parri.andrea@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/barrier.h