Unref/free amaps before grabbing the KERNEL_LOCK().
authormpi <mpi@openbsd.org>
Tue, 5 Oct 2021 15:37:21 +0000 (15:37 +0000)
committermpi <mpi@openbsd.org>
Tue, 5 Oct 2021 15:37:21 +0000 (15:37 +0000)
commit2a71da199878e7fa35aa125dc803f5d67665f3a9
tree8d51a3311277d0372b838dbe8215e1e87519cd99
parentd1d2627781b4f72d3df46e82cad446aaacc25670
Unref/free amaps before grabbing the KERNEL_LOCK().

This is possible now that amaps & anons are protected by a per-map rwlock.

Tested by many as part of a bigger diff.

ok kettenis@
sys/uvm/uvm_map.c