Reserve a second segment for the page daemon.
authormpi <mpi@openbsd.org>
Tue, 28 Jun 2022 19:07:40 +0000 (19:07 +0000)
committermpi <mpi@openbsd.org>
Tue, 28 Jun 2022 19:07:40 +0000 (19:07 +0000)
commit5d4a892ef8b937c46d831e27a7bd44e22deaba77
tree1ed3ebaaadb6e9c720e50684e276774a52eb5b5c
parente2aac01125d34401ae11c03d059fabaea2bb35ea
Reserve a second segment for the page daemon.

This ensures uvm_swap_io() can succeeds even in OOM situations because two
uvm_pagermapin() allocations, requiring a segment each, are needed to bounce
or encrypt a swap cluster.

ok beck@, kettenis@
sys/uvm/uvm_pager.c