Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/kern Pull up revision 1.126 (requested by thorpej i...



details:   https://anonhg.NetBSD.org/src/rev/7f5b51202437
branches:  netbsd-2-0
changeset: 561574:7f5b51202437
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 08:56:51 2004 +0000

description:
Pull up revision 1.126 (requested by thorpej in ticket #523):
Don't use PR_IMMEDRELEASE on buffer cache pools.  Instead, set a high
water mark of 1, which will have the same effect.
Pointed out back in January by YAMAMOTO Takashi.

diffstat:

 sys/kern/vfs_bio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 679923cc55bc -r 7f5b51202437 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Tue Jun 22 08:53:16 2004 +0000
+++ b/sys/kern/vfs_bio.c        Tue Jun 22 08:56:51 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.122.2.1 2004/05/26 20:15:02 he Exp $     */
+/*     $NetBSD: vfs_bio.c,v 1.122.2.2 2004/06/22 08:56:51 tron Exp $   */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -81,7 +81,7 @@
 #include "opt_softdep.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.122.2.1 2004/05/26 20:15:02 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.122.2.2 2004/06/22 08:56:51 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -371,8 +371,9 @@
                pa = (size <= PAGE_SIZE && smallmem)
                        ? &pool_allocator_nointr
                        : &bufmempool_allocator;
-               pool_init(pp, size, 0, 0, PR_IMMEDRELEASE, name, pa);
+               pool_init(pp, size, 0, 0, 0, name, pa);
                pool_setlowat(pp, 1);
+               pool_sethiwat(pp, 1);
        }
 
        /* Initialize the buffer queues */



Home | Main Index | Thread Index | Old Index