Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2009 17:02:18 +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: r195641 - head/sys/fs/nfsclient
Message-ID:  <200907121702.n6CH2Iju090210@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Sun Jul 12 17:02:17 2009
New Revision: 195641
URL: http://svn.freebsd.org/changeset/base/195641

Log:
  Fix the handling of dotdot in lookup for the experimental nfs client
  in a manner analagous to the change in r195294 for the regular nfs client.
  
  Approved by:	re (kensmith), kib (mentor)

Modified:
  head/sys/fs/nfsclient/nfs_clvnops.c

Modified: head/sys/fs/nfsclient/nfs_clvnops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clvnops.c	Sun Jul 12 16:50:32 2009	(r195640)
+++ head/sys/fs/nfsclient/nfs_clvnops.c	Sun Jul 12 17:02:17 2009	(r195641)
@@ -1111,9 +1111,11 @@ nfs_lookup(struct vop_lookup_args *ap)
 		ltype = VOP_ISLOCKED(dvp);
 		error = vfs_busy(mp, MBF_NOWAIT);
 		if (error != 0) {
+			vfs_ref(mp);
 			VOP_UNLOCK(dvp, 0);
 			error = vfs_busy(mp, 0);
 			vn_lock(dvp, ltype | LK_RETRY);
+			vfs_rel(mp);
 			if (error == 0 && (dvp->v_iflag & VI_DOOMED)) {
 				vfs_unbusy(mp);
 				error = ENOENT;



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