From 150b18f93d81fc7c1cfeaaef8ccb23259a94e695 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 11 Jun 2014 03:59:14 +0000 Subject: MFC r267060: Allow shared locking for the tmpfs vnode. --- sys/fs/tmpfs/tmpfs_subr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/fs') diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index f4508c6..4d9b71d 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -595,6 +595,8 @@ loop1: 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) -- cgit v1.1