diff options
author | Mateusz Guzik <[email protected]> | 2022-09-21 00:32:44 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-20 15:32:44 -0700 |
commit | 402426c7d81f410fa088c3bd893d4941a97d8332 (patch) | |
tree | 30e80418cbf12bfc1df324f6100791384cb5828e /include/os/linux/spl/sys/vmsystm.h | |
parent | 62e2a2881f6b441c136fb4ccb66ab491a5e6101f (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Mateusz Guzik <[email protected]>
Closes #13907
Diffstat (limited to 'include/os/linux/spl/sys/vmsystm.h')
-rw-r--r-- | include/os/linux/spl/sys/vmsystm.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |