From owner-cvs-all@FreeBSD.ORG Sun Mar 13 11:56:28 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 A5DA016A4CE; Sun, 13 Mar 2005 11:56:28 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 793C743D1F; Sun, 13 Mar 2005 11:56:28 +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 j2DBuSCO041399; Sun, 13 Mar 2005 11:56:28 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2DBuSra041398; Sun, 13 Mar 2005 11:56:28 GMT (envelope-from jeff) Message-Id: <200503131156.j2DBuSra041398@repoman.freebsd.org> From: Jeff Roberson Date: Sun, 13 Mar 2005 11:56:28 +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_vnops.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: Sun, 13 Mar 2005 11:56:28 -0000 jeff 2005-03-13 11:56:28 UTC FreeBSD src repository Modified files: sys/kern vfs_vnops.c Log: - Do a vn_start_write in vn_close, we may write if this is the last ref on an unlinked file. We can't know if this is the case until after we have the lock. - Lock the vnode in vn_close, many filesystems had code which was unsafe without the lock held, and holding it greatly simplifies vgone(). - Adjust vn_lock() to check for the VI_DOOMED flag where appropriate. Sponsored by: Isilon Systems, Inc. Revision Changes Path 1.225 +20 -21 src/sys/kern/vfs_vnops.c