diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2021-01-02 02:40:00 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2021-01-02 02:40:00 +0000 |
commit | b89e6b2e0719243a6fbdfd8ab8f4d2183dfa8b08 (patch) | |
tree | 3e1496124a0f7fda0fee6a19da6be18cba3a906f /sys/uvm/uvm_fault.c | |
parent | bc857bca631d61a206a01a2219fa893c00390d62 (diff) |
uvm: uvm_fault_lower(): don't sleep on lbolt
We can simulate the current behavior without lbolt by sleeping for 1
second on the &nowake channel.
ok mpi@
Diffstat (limited to 'sys/uvm/uvm_fault.c')
-rw-r--r-- | sys/uvm/uvm_fault.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c index ee2dd8f74b8..f148b0ad3eb 100644 --- a/sys/uvm/uvm_fault.c +++ b/sys/uvm/uvm_fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_fault.c,v 1.110 2020/12/28 14:01:23 mpi Exp $ */ +/* $OpenBSD: uvm_fault.c,v 1.111 2021/01/02 02:39:59 cheloha Exp $ */ /* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */ /* @@ -1122,7 +1122,8 @@ uvm_fault_lower(struct uvm_faultinfo *ufi, struct uvm_faultctx *flt, KASSERT(result != VM_PAGER_PEND); if (result == VM_PAGER_AGAIN) { - tsleep_nsec(&lbolt, PVM, "fltagain2", INFSLP); + tsleep_nsec(&nowake, PVM, "fltagain2", + SEC_TO_NSEC(1)); return ERESTART; } |