Reading pages from swap is always done synchronously. The fault handler
needs to sleep and PGO_SYNCIO is already asserted a couple of lines above.
ok beck@, kettenis@ as part of a larger diff.
-/* $OpenBSD: uvm_swap.c,v 1.159 2022/06/30 13:54:37 mpi Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.160 2022/07/11 11:29:11 mpi Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
}
KERNEL_LOCK();
- result = uvm_swap_io(&page, swslot, 1, B_READ |
- ((flags & PGO_SYNCIO) ? 0 : B_ASYNC));
+ result = uvm_swap_io(&page, swslot, 1, B_READ);
KERNEL_UNLOCK();
if (result == VM_PAGER_OK || result == VM_PAGER_PEND) {