diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2012-12-02 19:42:37 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2012-12-02 19:42:37 +0000 |
commit | af958412e16e8e024cc5350f5d7b62e52a9e15fb (patch) | |
tree | e06851d8920eac95296a73127aae703994547281 /sys/kern/vfs_bio.c | |
parent | c3c02a2d6fd5229881e56981e52ad6a1ff57ff7d (diff) |
Fix kva reserve - ensure that kva reserve is checked for, as well
as fix the case where buffers can be returned on the vinvalbuf path
and we do not get woken up when waiting for kva.
An earlier version looked at and ok'd by guenther@ in coimbra. - helpful
comments from kettenis@
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index e7caabc65cc..94fe0b88f3f 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.140 2012/12/02 19:34:14 beck Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.141 2012/12/02 19:42:36 beck Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -101,19 +101,6 @@ long bufbackpages; /* number of pages we back off when asked to shrink */ vsize_t bufkvm; -/* - * RESERVE_SLOTS of kva space, and the corresponding amount - * of buffer pages are reserved for the cleaner and syncer's - * exclusive use. Since we reserve kva slots to map the buffers - * along with the buffer space, this ensures the cleaner and - * syncer can always map and push out buffers if we get low - * on buffer pages or kva space in which to map them. - */ -#define RESERVE_SLOTS 4 -#define RESERVE_PAGES (RESERVE_SLOTS * MAXPHYS / PAGE_SIZE) -#define BCACHE_MIN (RESERVE_PAGES * 2) -#define UNCLEAN_PAGES (bcstats.numbufpages - bcstats.numcleanpages) - struct proc *cleanerproc; int bd_req; /* Sleep point for cleaner daemon. */ |