Use LK_CANRECURSE since when a PMC-owning process performs an exec,

the new text vnode is already locked by itself.

MFC after:	3 days
This commit is contained in:
Joseph Koshy 2005-07-17 04:18:06 +00:00
parent a385e04b47
commit d9dcd4f93c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148088

View File

@ -668,7 +668,7 @@ pmc_getfilename(struct vnode *v, char **fullpath, char **freepath)
td = curthread;
*fullpath = "unknown";
*freepath = NULL;
vn_lock(v, LK_EXCLUSIVE | LK_RETRY, td);
vn_lock(v, LK_CANRECURSE | LK_EXCLUSIVE | LK_RETRY, td);
vn_fullpath(td, v, fullpath, freepath);
VOP_UNLOCK(v, 0, td);
}