aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-06-04 16:52:10 -0700
committerGitHub <[email protected]>2018-06-04 16:52:10 -0700
commit2d9142c9d4c9db4edcef4777fecfafa4832610cb (patch)
tree8096ca173efcec1079ea4fbdc4418ca1e9c8c222 /include/sys
parente48afbc4ebc64712f56220b65ed12c536ef0e114 (diff)
Remove rwlock wrappers
The only remaining consumer of the rwlock compatibility wrappers is ztest. Remove the wrappers and convert the few remaining calls to the underlying pthread functions. rwlock_init() -> pthread_rwlock_init() rwlock_destroy() -> pthread_rwlock_destroy() rw_rdlock() -> pthread_rwlock_rdlock() rw_wrlock() -> pthread_rwlock_wrlock() rw_unlock() -> pthread_rwlock_unlock() Note pthread_rwlock_init() defaults to PTHREAD_PROCESS_PRIVATE which is equivilant to the USYNC_THREAD behavior. There is no functional change. Reviewed-by: Olaf Faaland <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #7591
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/zfs_context.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 170a909b4..6ac16dc1e 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -86,7 +86,6 @@
#include <strings.h>
#include <pthread.h>
#include <setjmp.h>
-#include <synch.h>
#include <assert.h>
#include <alloca.h>
#include <umem.h>