Decrement uobj reference count without KERNEL_LOCK().
authormpi <mpi@openbsd.org>
Wed, 23 Oct 2024 07:18:44 +0000 (07:18 +0000)
committermpi <mpi@openbsd.org>
Wed, 23 Oct 2024 07:18:44 +0000 (07:18 +0000)
commite49f26072736afaa0d375a3f7346557ffb406a19
treecf1c08603562c00ce964e1f5840263eed2f1ee10
parent5b5a95fddd461e46aad76316cb3ec80695176cb4
Decrement uobj reference count without KERNEL_LOCK().

Reduce KERNEL_LOCK() contention when tearing down file-backed regions.  Here
it is safe to interleave the KERNEL_LOCK() and a rwlock because the former
is released if the latter is contented.

Contention analysed by and ok claudio@, ok kettenis@
sys/uvm/uvm_vnode.c