Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2011 20:54:30 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220546 - head/sys/fs/nfsserver
Message-ID:  <201104112054.p3BKsUxw099228@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Mon Apr 11 20:54:30 2011
New Revision: 220546
URL: http://svn.freebsd.org/changeset/base/220546

Log:
  Vrele ni_startdir in the experimental NFS server for the case
  of NFSv2 getting an error return from VOP_MKNOD(). Without this
  patch, the server file system remains busy after an NFSv2
  VOP_MKNOD() fails.
  
  MFC after:	2 weeks

Modified:
  head/sys/fs/nfsserver/nfs_nfsdport.c

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c	Mon Apr 11 19:27:44 2011	(r220545)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c	Mon Apr 11 20:54:30 2011	(r220546)
@@ -765,10 +765,9 @@ nfsvno_createsub(struct nfsrv_descript *
 			    &ndp->ni_cnd, &nvap->na_vattr);
 			vput(ndp->ni_dvp);
 			nfsvno_relpathbuf(ndp);
-			if (error) {
-				vrele(ndp->ni_startdir);
+			vrele(ndp->ni_startdir);
+			if (error)
 				return (error);
-			}
 		} else {
 			vrele(ndp->ni_startdir);
 			nfsvno_relpathbuf(ndp);



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