From owner-cvs-src@FreeBSD.ORG Fri Nov 24 11:53:18 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57BDA16A403; Fri, 24 Nov 2006 11:53:18 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7DB543D75; Fri, 24 Nov 2006 11:52:36 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAOBrHrD000914; Fri, 24 Nov 2006 11:53:17 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAOBrHHo000912; Fri, 24 Nov 2006 11:53:17 GMT (envelope-from rwatson) Message-Id: <200611241153.kAOBrHHo000912@repoman.freebsd.org> From: Robert Watson Date: Fri, 24 Nov 2006 11:53:17 +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/nfsserver nfs.h nfs_serv.c nfs_srvsubs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 24 Nov 2006 11:53:18 -0000 rwatson 2006-11-24 11:53:17 UTC FreeBSD src repository Modified files: sys/nfsserver nfs.h nfs_serv.c nfs_srvsubs.c Log: Push Giant a bit further off the NFS server in a number of straight forward cases by converting from unconditional acquisition of Giant around vnode operations to conditional acquisition: - Remove nfsrv_access_withgiant(), and cause nfsrv_access() to now assert that Giant will be held if it is required for the vnode. - Add nfsrv_fhtovp_locked(), which will drop the NFS server lock if required, and modify nfsrv_fhtovp() to conditionally acquire Giant if required. - In the VOP's not dealing with more than one vnode at a time (i.e., not involving a lookup), conditionally acquire Giant. This removes Giant use for MPSAFE file systems for a number of quite important RPCs, including getattr, read, write. It leaves unconditional Giant acquisitions in vnode operations that interact with the name space or more than one vnode at a time as these require further work. Tested by: kris Reviewed by: kib Revision Changes Path 1.81 +3 -0 src/sys/nfsserver/nfs.h 1.168 +263 -213 src/sys/nfsserver/nfs_serv.c 1.144 +31 -11 src/sys/nfsserver/nfs_srvsubs.c