Make anonymous object reference counting independant from the KERNEL_LOCK().
authormpi <mpi@openbsd.org>
Mon, 28 Jun 2021 11:19:01 +0000 (11:19 +0000)
committermpi <mpi@openbsd.org>
Mon, 28 Jun 2021 11:19:01 +0000 (11:19 +0000)
commit1af743108700dddf74da234e458f05f72b842eeb
tree11eeaaaf55d163d27546f88c11a8e8248cfc23c2
parent2c42d8369b35d8185f3c379117ccb2a2ed208f95
Make anonymous object reference counting independant from the KERNEL_LOCK().

- Use atomic operations for increment/decrement

- Rewrite the loop from uao_swap_off() to only keep a reference to the
  next item in the list.

ok jmatthew@
sys/uvm/uvm_aobj.c
sys/uvm/uvm_extern.h