Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 06/27/2001 01:52:04
Module Name: syssrc
Committed By: thorpej
Date: Tue Jun 26 22:52:04 UTC 2001
Modified Files:
syssrc/sys/kern: vfs_subr.c
Log Message:
In getnewvnode(), allocate a vnode from the pool with NOWAIT. If
that fails, just try to recycle a vnode. If we can't allocate or
recycle, issue a warning, sleep a bit, and try the whole thing
again.
This prevents us from blocking forever if we want to use a very large
number of vnodes, but don't have {memory,kva} resources from which to
allocate them.
To generate a diff of this commit:
cvs rdiff -r1.152 -r1.153 syssrc/sys/kern/vfs_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.