mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-10-24 17:05:01 +03:00
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 <faaland1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7591
|
||
|---|---|---|
| .. | ||
| ia32 | ||
| rpc | ||
| sys | ||
| util | ||
| assert.h | ||
| atomic.h | ||
| devid.h | ||
| libdevinfo.h | ||
| libgen.h | ||
| libshare.h | ||
| limits.h | ||
| locale.h | ||
| Makefile.am | ||
| statcommon.h | ||
| stdio.h | ||
| stdlib.h | ||
| string.h | ||
| stropts.h | ||
| thread.h | ||
| tzfile.h | ||
| ucred.h | ||
| umem.h | ||
| unistd.h | ||
| zone.h | ||