From owner-cvs-all@FreeBSD.ORG Fri Aug 10 05:24:49 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D74116A417; Fri, 10 Aug 2007 05:24:49 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8D84E13C465; Fri, 10 Aug 2007 05:24:49 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l7A5OnTD065133; Fri, 10 Aug 2007 05:24:49 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7A5OnE4065132; Fri, 10 Aug 2007 05:24:49 GMT (envelope-from delphij) Message-Id: <200708100524.l7A5OnE4065132@repoman.freebsd.org> From: Xin LI Date: Fri, 10 Aug 2007 05:24:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 10 Aug 2007 05:24:49 -0000 delphij 2007-08-10 05:24:49 UTC FreeBSD src repository Modified files: sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log: MFp4: - Respect cnflag and don't lock vnode always as LK_EXCLUSIVE [1] - Properly lock around tn_vnode to avoid NULL deference - Be more careful handling vnodes (*) (*) This is a WIP [1] by pjd via howardsu Thanks kib@ for his valuable VFS related comments. Tested with: fsx, fstest, tmpfs regression test set Found by: pho's stress2 suite Approved by: re (tmpfs blanket) Revision Changes Path 1.10 +2 -2 src/sys/fs/tmpfs/tmpfs.h 1.11 +28 -19 src/sys/fs/tmpfs/tmpfs_subr.c 1.9 +5 -2 src/sys/fs/tmpfs/tmpfs_vfsops.c 1.9 +34 -13 src/sys/fs/tmpfs/tmpfs_vnops.c