]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/zfs_context.h
libspl: Implement LWP rwlock interface
authorRichard Yao <ryao@gentoo.org>
Wed, 30 Apr 2014 17:12:27 +0000 (13:12 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 May 2014 22:53:52 +0000 (15:53 -0700)
commit3af3df905fb43dd3a3957f3daea7777a434fee05
treeba965a8976b5a742ea9da39c92b962275f8ad9f7
parentc6e924fea8fd2abc1359ad08e51bf326cbeb3ed4
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 <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1970
include/sys/zfs_context.h
lib/libspl/include/synch.h