Patch the regular nfs client in a manner analagous to
r195704 for the experimental client. The patch avoids calling vn_lock() for the case where nfs_nget() has acquired the same vnode as dvp, since nfs_nget() has already locked the vnode. Reviewed by: kib, jhb Approved by: re (kensmith), kib (mentor)
This commit is contained in:
parent
69ca61ba5e
commit
874bb76647
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195744
@ -1061,7 +1061,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)
|
||||
|
Loading…
Reference in New Issue
Block a user