Allow shared locking for the tmpfs vnodes.
Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
94fe9f959c
commit
60c5c866aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267060
@ -595,6 +595,8 @@ tmpfs_alloc_vp(struct mount *mp, struct tmpfs_node *node, int lkflag,
|
||||
default:
|
||||
panic("tmpfs_alloc_vp: type %p %d", node, (int)node->tn_type);
|
||||
}
|
||||
if (vp->v_type != VFIFO)
|
||||
VN_LOCK_ASHARE(vp);
|
||||
|
||||
error = insmntque1(vp, mp, tmpfs_insmntque_dtr, NULL);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user