diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2015-09-15 23:06:56 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2015-09-15 23:06:56 +0000 |
commit | 7665e341cae225b650174db2fdb769619f62fca6 (patch) | |
tree | 455ed0dbc0d430d92a6eb5d578f9a1f9c21aa40c /sys/sys/sysctl.h | |
parent | e89d5f43da49d978ac6fe7f78247de590e862416 (diff) | |
download | src-7665e341cae225b650174db2fdb769619f62fca6.tar.gz src-7665e341cae225b650174db2fdb769619f62fca6.zip |
sysctl: switch sysctllock to a sleepable rmlock, take 2
This restores r285125. Previous attempt was reverted due to a bug in rmlocks,
which is fixed since r287833.
Notes
Notes:
svn path=/head/; revision=287835
Diffstat (limited to 'sys/sys/sysctl.h')
-rw-r--r-- | sys/sys/sysctl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 988dbae94087..4c66431e55f4 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -807,8 +807,8 @@ int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, size_t *retval, int flags); int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, int *nindx, struct sysctl_req *req); -void sysctl_xlock(void); -void sysctl_xunlock(void); +void sysctl_wlock(void); +void sysctl_wunlock(void); int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len); struct sbuf; |