From owner-cvs-all@FreeBSD.ORG Fri Oct 12 19:12:21 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 9A4EA16A41A; Fri, 12 Oct 2007 19:12:21 +0000 (UTC) (envelope-from mohans@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 900C713C4AA; Fri, 12 Oct 2007 19:12:21 +0000 (UTC) (envelope-from mohans@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 l9CJCLYu085993; Fri, 12 Oct 2007 19:12:21 GMT (envelope-from mohans@repoman.freebsd.org) Received: (from mohans@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9CJCLeI085992; Fri, 12 Oct 2007 19:12:21 GMT (envelope-from mohans) Message-Id: <200710121912.l9CJCLeI085992@repoman.freebsd.org> From: Mohan Srinivasan Date: Fri, 12 Oct 2007 19:12:21 +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/nfsclient nfs.h nfs_socket.c nfs_subs.c nfsmount.h 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, 12 Oct 2007 19:12:21 -0000 mohans 2007-10-12 19:12:21 UTC FreeBSD src repository Modified files: sys/nfsclient nfs.h nfs_socket.c nfs_subs.c nfsmount.h Log: NFS MP scaling changes. - Eliminate the hideous nfs_sndlock that serialized NFS/TCP request senders thru the sndlock. - Institute a new nfs_connectlock that serializes NFS/TCP reconnects. Add logic to wait for pending request senders to finish sending before reconnecting. Dial down the sb_timeo for NFS/TCP sockets to 1 sec. - Break out the nfs xid manipulation under a new nfs xid lock, rather than over loading the nfs request lock for this purpose. - Fix some of the locking in nfs_request. Many thanks to Kris Kennaway for his help with this and for initiating the MP scaling analysis and work. Kris also tested this patch thorougly. Approved by: re@ (Ken Smith) Revision Changes Path 1.99 +2 -2 src/sys/nfsclient/nfs.h 1.155 +123 -71 src/sys/nfsclient/nfs_socket.c 1.147 +4 -2 src/sys/nfsclient/nfs_subs.c 1.33 +2 -0 src/sys/nfsclient/nfsmount.h