diff options
author | truckman <truckman@FreeBSD.org> | 2004-03-05 22:03:11 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2004-03-05 22:03:11 +0000 |
commit | 367b608998e2012299c99a8fb4b5644539c355cf (patch) | |
tree | 8946cd82a88106cba27e5808596af0a80a82338b /share | |
parent | d0818243a98d068bca04404ffdf26cdcfd64b0d0 (diff) | |
download | FreeBSD-src-367b608998e2012299c99a8fb4b5644539c355cf.zip FreeBSD-src-367b608998e2012299c99a8fb4b5644539c355cf.tar.gz |
Undo the merger of mlock()/vslock and munlock()/vsunlock() and the
introduction of kern_mlock() and kern_munlock() in
src/sys/kern/kern_sysctl.c 1.150
src/sys/vm/vm_extern.h 1.69
src/sys/vm/vm_glue.c 1.190
src/sys/vm/vm_mmap.c 1.179
because different resource limits are appropriate for transient and
"permanent" page wiring requests.
Retain the kern_mlock() and kern_munlock() API in the revived
vslock() and vsunlock() functions.
Combine the best parts of each of the original sets of implementations
with further code cleanup. Make the mclock() and vslock()
implementations as similar as possible.
Retain the RLIMIT_MEMLOCK check in mlock(). Move the most strigent
test, which can return EAGAIN, last so that requests that have no
hope of ever being satisfied will not be retried unnecessarily.
Disable the test that can return EAGAIN in the vslock() implementation
because it will cause the sysctl code to wedge.
Tested by: Cy Schubert <Cy.Schubert AT komquats.com>
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions