From owner-cvs-src@FreeBSD.ORG Sat Nov 1 20:52:55 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18D2116A4CE; Sat, 1 Nov 2003 20:52:55 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C1F643F3F; Sat, 1 Nov 2003 20:52:54 -0800 (PST) (envelope-from kan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hA24qsXJ032380; Sat, 1 Nov 2003 20:52:54 -0800 (PST) (envelope-from kan@repoman.freebsd.org) Received: (from kan@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hA24qr7a032379; Sat, 1 Nov 2003 20:52:53 -0800 (PST) (envelope-from kan) Message-Id: <200311020452.hA24qr7a032379@repoman.freebsd.org> From: Alexander Kabaev Date: Sat, 1 Nov 2003 20:52:53 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/msdosfs msdosfs_vfsops.c src/sys/gnu/ext2fs ext2_vfsops.c src/sys/kern vfs_default.c src/sys/nfsclient nfs_vfsops.c src/sys/ufs/ffs ffs_vfsops.c src/sys/ufs/ufs ufs_quota.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 04:52:55 -0000 kan 2003/11/01 20:52:53 PST FreeBSD src repository Modified files: sys/fs/msdosfs msdosfs_vfsops.c sys/gnu/ext2fs ext2_vfsops.c sys/kern vfs_default.c sys/nfsclient nfs_vfsops.c sys/ufs/ffs ffs_vfsops.c sys/ufs/ufs ufs_quota.c Log: Take care not to call vput if thread used in corresponding vget wasn't curthread, i.e. when we receive a thread pointer to use as a function argument. Use VOP_UNLOCK/vrele in these cases. The only case there td != curthread known at the moment is boot() calling sync with thread0 pointer. This fixes the panic on shutdown people have reported. Revision Changes Path 1.110 +2 -1 src/sys/fs/msdosfs/msdosfs_vfsops.c 1.111 +2 -1 src/sys/gnu/ext2fs/ext2_vfsops.c 1.90 +2 -1 src/sys/kern/vfs_default.c 1.140 +2 -1 src/sys/nfsclient/nfs_vfsops.c 1.222 +4 -2 src/sys/ufs/ffs/ffs_vfsops.c 1.69 +6 -3 src/sys/ufs/ufs/ufs_quota.c