svn commit: r222844 - stable/8/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Wed Jun 8 01:28:47 UTC 2011
Author: rmacklem
Date: Wed Jun 8 01:28:46 2011
New Revision: 222844
URL: http://svn.freebsd.org/changeset/base/222844
Log:
MFC: r222291
Add some missing mutex locking to the new NFS client.
Modified:
stable/8/sys/fs/nfsclient/nfs_clvnops.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/fs/nfsclient/nfs_clvnops.c
==============================================================================
--- stable/8/sys/fs/nfsclient/nfs_clvnops.c Wed Jun 8 01:18:47 2011 (r222843)
+++ stable/8/sys/fs/nfsclient/nfs_clvnops.c Wed Jun 8 01:28:46 2011 (r222844)
@@ -2460,10 +2460,12 @@ ncl_commit(struct vnode *vp, u_quad_t of
error = nfsrpc_commit(vp, offset, cnt, cred, td, verf, &nfsva,
&attrflag, NULL);
if (!error) {
+ mtx_lock(&nmp->nm_mtx);
if (NFSBCMP((caddr_t)nmp->nm_verf, verf, NFSX_VERF)) {
NFSBCOPY(verf, (caddr_t)nmp->nm_verf, NFSX_VERF);
error = NFSERR_STALEWRITEVERF;
}
+ mtx_unlock(&nmp->nm_mtx);
if (!error && attrflag)
(void) nfscl_loadattrcache(&vp, &nfsva, NULL, NULL,
0, 1);
More information about the svn-src-stable
mailing list