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:
parent
a385e04b47
commit
d9dcd4f93c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user