Revert previous: unref of amap outside of the KERNEL_LOCK().
authormpi <mpi@openbsd.org>
Thu, 17 Jun 2021 16:10:39 +0000 (16:10 +0000)
committermpi <mpi@openbsd.org>
Thu, 17 Jun 2021 16:10:39 +0000 (16:10 +0000)
commitc8a76b7e032caae72328be9a4745b8d4f4a92105
treec6349794c110884ccc93a6b519229f0f0b90b4aa
parent6f3fe6b74afd9b46db6a25e0b3b6de4db64067fd
Revert previous: unref of amap outside of the KERNEL_LOCK().

This change introduced or exposed a leak of anons which result in system
freezes.

anton@ observed a high number of INUSE for anonpl and semarie@ saw multiple
processes waiting in the fault handler on "flt_noramX" probably the one
related to allocating an anon.
sys/uvm/uvm_map.c