Simplify the aiodone daemon which is only used for async writes.
authormpi <mpi@openbsd.org>
Mon, 11 Jul 2022 11:33:17 +0000 (11:33 +0000)
committermpi <mpi@openbsd.org>
Mon, 11 Jul 2022 11:33:17 +0000 (11:33 +0000)
commitf52c3bf3b7dae2ff904a2cb3fffb77b734f5eb55
tree58bca31fdfc5a3058ef9fbce4fb0cfc5a5527726
parent630cd361845dc15420fb935f93bc6fdc07422b7d
Simplify the aiodone daemon which is only used for async writes.

- Remove unused support for asynchronous read, including error conditions

- Grab the proper lock for each page that has been written to swap.  This
  allows to enable an assertion in uvm_page_unbusy().

- Move the uvm_anon_release() call outside of uvm_page_unbusy() and
  assert for the different anon cases.

ok beck@, kettenis@
sys/uvm/uvm_aobj.c
sys/uvm/uvm_aobj.h
sys/uvm/uvm_page.c
sys/uvm/uvm_pager.c