aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zfs_context.h
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2014-04-30 13:12:27 -0400
committerBrian Behlendorf <[email protected]>2014-05-01 15:53:52 -0700
commit3af3df905fb43dd3a3957f3daea7777a434fee05 (patch)
treeba965a8976b5a742ea9da39c92b962275f8ad9f7 /include/sys/zfs_context.h
parentc6e924fea8fd2abc1359ad08e51bf326cbeb3ed4 (diff)
libspl: Implement LWP rwlock interface
This implements a subset of the LWP rwlock interface by wrapping the equivalent POSIX thread interface. It is a superset of the features needed by ztest. The missing bits are {,_}rw_read_held() and {,_}rw_write_held(). Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #1970
Diffstat (limited to 'include/sys/zfs_context.h')
-rw-r--r--include/sys/zfs_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 1861b845d..ec2a7dea0 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -90,6 +90,7 @@
#include <string.h>
#include <strings.h>
#include <pthread.h>
+#include <synch.h>
#include <assert.h>
#include <alloca.h>
#include <umem.h>