svn commit: r195641 - head/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Sun Jul 12 17:02:18 UTC 2009
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;
More information about the svn-src-head
mailing list