From owner-cvs-src-old@FreeBSD.ORG Mon Feb 22 21:46:41 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B6FB1065679 for ; Mon, 22 Feb 2010 21:46:41 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2D18FC16 for ; Mon, 22 Feb 2010 21:46:41 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1MLkeMo054046 for ; Mon, 22 Feb 2010 21:46:40 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1MLkenx054045 for cvs-src-old@freebsd.org; Mon, 22 Feb 2010 21:46:40 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <201002222146.o1MLkenx054045@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Mon, 22 Feb 2010 21:45:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/modules Makefile src/sys/modules/nfs_common Makefile src/sys/modules/nfsclient Makefile src/sys/modules/nfsserver Makefile src/sys/nfs nfs_common.c nfs_common.h src/sys/nfsclient nfs_krpc.c nfs_vfsops.c ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 21:46:41 -0000 marius 2010-02-22 21:45:20 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/modules Makefile sys/modules/nfsclient Makefile sys/modules/nfsserver Makefile sys/nfs nfs_common.c nfs_common.h sys/nfsclient nfs_krpc.c nfs_vfsops.c sys/nfsserver nfs.h nfs_fha.c nfs_srvkrpc.c nfs_srvsubs.c Added files: (Branch: RELENG_8) sys/modules/nfs_common Makefile Log: SVN rev 204224 on 2010-02-22 21:45:20Z by marius - Factor out the code shared between NFS client and server into its own module so it's not present twice. - Move nfs_realign() from the NFS client to the shared NFS code and remove the NFS server version in order to reduce code duplication. The shared version now uses a second parameter how, which is passed on to m_get(9) and m_getcl(9) as the server used M_WAIT while the client requires M_DONTWAIT, and replaces the the previously unused parameter hsiz. - Change nfs_realign() to use nfsm_aligned() so as with other NFS code the alignment check isn't actually performed on platforms without strict alignment requirements for performance reasons because as the comment suggests unaligned data only occasionally occurs with TCP. - Change fha_extract_info() to use nfs_realign() with M_DONTWAIT rather than M_WAIT because it's called with the RPC sp_lock held. Revision Changes Path 1.623.2.8 +1 -0 src/sys/modules/Makefile 1.1.2.2 +8 -0 src/sys/modules/nfs_common/Makefile (new) 1.39.2.2 +2 -2 src/sys/modules/nfsclient/Makefile 1.31.2.2 +2 -2 src/sys/modules/nfsserver/Makefile 1.122.2.2 +77 -0 src/sys/nfs/nfs_common.c 1.38.10.2 +1 -0 src/sys/nfs/nfs_common.h 1.9.2.2 +1 -66 src/sys/nfsclient/nfs_krpc.c 1.226.2.6 +1 -0 src/sys/nfsclient/nfs_vfsops.c 1.90.2.4 +0 -1 src/sys/nfsserver/nfs.h 1.4.2.5 +3 -1 src/sys/nfsserver/nfs_fha.c 1.12.2.4 +1 -58 src/sys/nfsserver/nfs_srvkrpc.c 1.167.2.2 +1 -0 src/sys/nfsserver/nfs_srvsubs.c