From owner-cvs-all@FreeBSD.ORG Mon Apr 4 11:43:45 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6619D16A4CE; Mon, 4 Apr 2005 11:43:45 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3703D43D39; Mon, 4 Apr 2005 11:43:45 +0000 (GMT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j34BhjwX031387; Mon, 4 Apr 2005 11:43:45 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j34Bhjar031386; Mon, 4 Apr 2005 11:43:45 GMT (envelope-from jeff) Message-Id: <200504041143.j34Bhjar031386@repoman.freebsd.org> From: Jeff Roberson Date: Mon, 4 Apr 2005 11:43:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 11:43:45 -0000 jeff 2005-04-04 11:43:44 UTC FreeBSD src repository Modified files: sys/kern vfs_subr.c Log: - Instead of waiting forever to get a vnode in getnewvnode() wait for one to become available for one second and then return ENFILE. We can run out of vnodes, and there must be a hard limit because without one we can quickly run out of KVA on x86. Presently the system can deadlock if there are maxvnodes directories in the namecache. The original 4.x BSD behavior was to return ENFILE if we reached the max, but 4.x BSD did not have the vnlru proc so it was less profitable to wait. Revision Changes Path 1.609 +3 -1 src/sys/kern/vfs_subr.c