1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-10 09:42:26 +00:00

Fix a deadlock which can occur due to a pseudofs vnode not getting unlocked.

Reported by:	Richard Todd <rmtodd@ichotolot.servalan.com>
Reviewed by:	kib
Approved by:	kib
This commit is contained in:
Joe Marcus Clarke 2009-01-09 22:06:48 +00:00
parent 813dd6ae5e
commit 4424c9d053
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186981

View File

@ -212,6 +212,7 @@ pfs_vncache_alloc(struct mount *mp, struct vnode **vpp,
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, curthread) == 0) {
++pfs_vncache_hits;
vgone(*vpp);
vput(*vpp);
*vpp = vp;
cache_purge(vp);
return (0);