diff options
author | dyson <dyson@FreeBSD.org> | 1996-03-09 06:57:53 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-03-09 06:57:53 +0000 |
commit | f9ef0c5c400d8c98a7d2baa2833df09e14cc3b20 (patch) | |
tree | c2b079894b2d715ff2b92713de39d81d73ac22fd /sys/vm/vm_glue.c | |
parent | d1a4f3bdd462733b99a4f2e1a61fd6019a0f60d6 (diff) | |
download | FreeBSD-src-f9ef0c5c400d8c98a7d2baa2833df09e14cc3b20.zip FreeBSD-src-f9ef0c5c400d8c98a7d2baa2833df09e14cc3b20.tar.gz |
Delay forking a process until there are more pages available. It was
possible to deadlock with the low threshold that we had used.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index bad6645..b52b05d 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.40 1996/02/23 18:49:24 peter Exp $ + * $Id: vm_glue.c,v 1.41 1996/03/02 02:54:19 dyson Exp $ */ #include "opt_ddb.h" @@ -440,7 +440,7 @@ scheduler(dummy) int ppri; loop: - while ((cnt.v_free_count + cnt.v_cache_count) < (cnt.v_free_reserved + UPAGES + 2)) { + while ((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min) { VM_WAIT; } |