From 402426c7d81f410fa088c3bd893d4941a97d8332 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 21 Sep 2022 00:32:44 +0200 Subject: Add membar_sync Provides the missing full barrier variant to the membar primitive set. While not used right now, this is probably going to change down the road. Name taken from Solaris, to follow the existing routines. Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Signed-off-by: Mateusz Guzik Closes #13907 --- include/os/linux/spl/sys/vmsystm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/os/linux/spl/sys/vmsystm.h') diff --git a/include/os/linux/spl/sys/vmsystm.h b/include/os/linux/spl/sys/vmsystm.h index fcd61e818..c6d99fb31 100644 --- a/include/os/linux/spl/sys/vmsystm.h +++ b/include/os/linux/spl/sys/vmsystm.h @@ -46,6 +46,7 @@ #define membar_consumer() smp_rmb() #define membar_producer() smp_wmb() +#define membar_sync() smp_mb() #define physmem zfs_totalram_pages -- cgit v1.2.3