Recheck PG_BUSY after locking the page.
authormpi <mpi@openbsd.org>
Sat, 30 Apr 2022 17:58:43 +0000 (17:58 +0000)
committermpi <mpi@openbsd.org>
Sat, 30 Apr 2022 17:58:43 +0000 (17:58 +0000)
commit609704bb108dada7d73d9bbb0959f8012c6991e0
tree5bad3a52f3a4cc6ab2d83b473b22e83234d0fc40
parent453b89b7ef90bec43feecdd5d29c7ed381fdb90c
Recheck PG_BUSY after locking the page.

Another thread can set the bit if we sleep during rw_enter(9) in which case
the page shouldn't be touched.

ok semarie@
sys/uvm/uvm_pdaemon.c