svn commit: r210268 - head/sys/fs/nfs

Rick Macklem rmacklem at FreeBSD.org
Mon Jul 19 23:33:43 UTC 2010


Author: rmacklem
Date: Mon Jul 19 23:33:42 2010
New Revision: 210268
URL: http://svn.freebsd.org/changeset/base/210268

Log:
  For the experimental NFSv4 server's dumplocks operation, add the
  MPSAFE flag to cn_flags so that it doesn't panic. The panics weren't
  seen since nfsdumpstate(8) is broken for the "-l" case, so this
  was never done. I'll do a separate commit to fix nfsdumpstate(8).
  
  Submitted by:	zack.kirsch at isilon.com
  MFC after:	2 weeks

Modified:
  head/sys/fs/nfs/nfs_commonport.c

Modified: head/sys/fs/nfs/nfs_commonport.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonport.c	Mon Jul 19 23:25:19 2010	(r210267)
+++ head/sys/fs/nfs/nfs_commonport.c	Mon Jul 19 23:33:42 2010	(r210268)
@@ -210,7 +210,8 @@ nfsrv_lookupfilename(struct nameidata *n
 {
 	int error;
 
-	NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, fname, p);
+	NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE, UIO_USERSPACE, fname,
+	    p);
 	error = namei(ndp);
 	if (!error) {
 		NDFREE(ndp, NDF_ONLY_PNBUF);


More information about the svn-src-head mailing list