diff options
author | dillon <dillon@FreeBSD.org> | 2001-12-18 20:48:54 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-12-18 20:48:54 +0000 |
commit | 1750942f6f64d20cc8853d2d1a60a3daaeeb1110 (patch) | |
tree | 89a26f0e4567d5ae7d2c30615da7f9a91b737eba /sys/kern/vfs_vnops.c | |
parent | d2ce088d88a16eb7f604d43fee20d0e9d45c2387 (diff) | |
download | FreeBSD-src-1750942f6f64d20cc8853d2d1a60a3daaeeb1110.zip FreeBSD-src-1750942f6f64d20cc8853d2d1a60a3daaeeb1110.tar.gz |
This is a forward port of Peter's vlrureclaim() fix, with some minor mods
by me to make it more efficient. The original code had serious balancing
problems and could also deadlock easily. This code relegates the vnode
reclamation to its own kproc and relaxes the vnode reclamation requirements
to better maintain kern.maxvnodes. This code still doesn't balance as well
as it could, but it does a much better job then the original code.
Approved by: re@freebsd.org
Obtained from: ps, peter, dillon
MFS Assuming: Assuming no problems crop up in Yahoo testing
MFC after: 7 days
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 84c3ae1..70448d6 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -55,6 +55,7 @@ #include <sys/filio.h> #include <sys/ttycom.h> #include <sys/conf.h> +#include <sys/syslog.h> #include <machine/limits.h> @@ -701,7 +702,7 @@ debug_vn_lock(vp, flags, td, filename, line) error = ENOENT; } else { if (vp->v_vxproc != NULL) - printf("VXLOCK interlock avoided in vn_lock\n"); + log(LOG_INFO, "VXLOCK interlock avoided in vn_lock\n"); #ifdef DEBUG_LOCKS vp->filename = filename; vp->line = line; |