]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm: stop taking proc lock in mmap to satisfy racct if it is disabled
authormjg <mjg@FreeBSD.org>
Tue, 18 Sep 2018 01:24:30 +0000 (01:24 +0000)
committermjg <mjg@FreeBSD.org>
Tue, 18 Sep 2018 01:24:30 +0000 (01:24 +0000)
commit185188304324d98647e2c5f87b24eca03d55093b
tree6d18832ff7055fe7776f343e73b1e6cb1660334e
parent3683971b49683ab8ded18237c5bb0a0fa3b2afc4
vm: stop taking proc lock in mmap to satisfy racct if it is disabled

Limits can be safely obtained with lim_cur from the thread. racct is compiled
in but disabled by default. Note that racct enablement is a boot-only tunable.

This eliminates second most common place of taking the lock while pkg building.

While here don't take the lock in mlockall either.

Reviewed by: kib
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D17210
sys/sys/racct.h
sys/vm/vm_mmap.c