summaryrefslogtreecommitdiff
path: root/sys/fs/nfsclient/nfs_clvnops.c
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2009-07-14 23:10:23 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2009-07-14 23:10:23 +0000
commit405229f913cd6a2947a9ddcfecb1ed5d579d11c8 (patch)
treec9768144f78f18757e2de0f1ae62e940e04eabc5 /sys/fs/nfsclient/nfs_clvnops.c
parentb35687df1384c17c4373863120d59daec2825a52 (diff)
downloadsrc-test2-405229f913cd6a2947a9ddcfecb1ed5d579d11c8.tar.gz
src-test2-405229f913cd6a2947a9ddcfecb1ed5d579d11c8.zip
Notes
Diffstat (limited to 'sys/fs/nfsclient/nfs_clvnops.c')
-rw-r--r--sys/fs/nfsclient/nfs_clvnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c
index 81b78a099e59..f75787b33383 100644
--- a/sys/fs/nfsclient/nfs_clvnops.c
+++ b/sys/fs/nfsclient/nfs_clvnops.c
@@ -1127,7 +1127,8 @@ nfs_lookup(struct vop_lookup_args *ap)
if (error == 0)
newvp = NFSTOV(np);
vfs_unbusy(mp);
- vn_lock(dvp, ltype | LK_RETRY);
+ if (newvp != dvp)
+ vn_lock(dvp, ltype | LK_RETRY);
if (dvp->v_iflag & VI_DOOMED) {
if (error == 0) {
if (newvp == dvp)