x86-64: correct read/write barriers
authorJens Axboe <axboe@kernel.dk>
Wed, 16 Jan 2019 04:43:11 +0000 (21:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Jan 2019 04:43:11 +0000 (21:43 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arch-x86_64.h

index 665c6b0..0cd21b8 100644 (file)
@@ -27,8 +27,8 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
 #define        FIO_HUGE_PAGE           2097152
 
 #define nop            __asm__ __volatile__("rep;nop": : :"memory")
-#define read_barrier() __asm__ __volatile__("lfence":::"memory")
-#define write_barrier()        __asm__ __volatile__("sfence":::"memory")
+#define read_barrier() __asm__ __volatile__("":::"memory")
+#define write_barrier()        __asm__ __volatile__("":::"memory")
 
 static inline unsigned long arch_ffz(unsigned long bitmask)
 {