Plug a name cache lock leak.

Reviewed by:	mjg
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Mark Johnston 2017-12-01 22:51:02 +00:00
parent 8e0cd68ff4
commit e1703ef5ae

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) {