Plug a name cache lock leak.

Reviewed by:	mjg
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
markj 2017-12-01 22:51:02 +00:00
parent a18f840bcf
commit bfea63b90b

View File

@ -1162,6 +1162,8 @@ cache_lookup_nomakeentry(struct vnode *dvp, struct vnode **vpp,
SDT_PROBE3(vfs, namecache, lookup, miss, dvp,
"..", NULL);
mtx_unlock(dvlp);
if (dvlp2 != NULL)
mtx_unlock(dvlp2);
return (0);
}
if ((ncp->nc_flag & NCF_ISDOTDOT) != 0) {