Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2010 23:45:14 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/nfs nfs_common.c nfs_common.h src/sys/nfsclient nfs_krpc.c src/sys/nfsserver nfs.h nfs_fha.c nfs_srvkrpc.c
Message-ID:  <201002092345.o19Njdtb092761@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marius      2010-02-09 23:45:14 UTC

  FreeBSD src repository

  Modified files:
    sys/nfs              nfs_common.c nfs_common.h 
    sys/nfsclient        nfs_krpc.c 
    sys/nfsserver        nfs.h nfs_fha.c nfs_srvkrpc.c 
  Log:
  SVN rev 203732 on 2010-02-09 23:45:14Z by marius
  
  - 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.
  
  Reviewed by:    jhb, rmacklem
  MFC after:      1 week
  
  Revision  Changes    Path
  1.124     +67 -0     src/sys/nfs/nfs_common.c
  1.40      +1 -0      src/sys/nfs/nfs_common.h
  1.11      +1 -66     src/sys/nfsclient/nfs_krpc.c
  1.93      +0 -1      src/sys/nfsserver/nfs.h
  1.9       +3 -1      src/sys/nfsserver/nfs_fha.c
  1.15      +1 -58     src/sys/nfsserver/nfs_srvkrpc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002092345.o19Njdtb092761>