Date: Sun, 13 Mar 2005 11:56:28 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_vnops.c Message-ID: <200503131156.j2DBuSra041398@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503131156.j2DBuSra041398>