Use a rwlock and a mutex to serialize access to global swap variables.
authormpi <mpi@openbsd.org>
Mon, 29 Aug 2022 11:09:31 +0000 (11:09 +0000)
committermpi <mpi@openbsd.org>
Mon, 29 Aug 2022 11:09:31 +0000 (11:09 +0000)
commitf5d1c5dafe50c422585309b0a0f8ffcb60b48e55
tree4e30d0fb9979e29a072631cf6982373395edb012
parent355f588a8749c332fe8b36df737ce9d60a5cf5b9
Use a rwlock and a mutex to serialize access to global swap variables.

Adapted from NetBSD by tb@.

ok tb@, kn@
sys/uvm/uvm_swap.c
sys/uvm/uvmexp.h