diff options
author | kib <kib@FreeBSD.org> | 2014-06-11 03:59:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-06-11 03:59:14 +0000 |
commit | 150b18f93d81fc7c1cfeaaef8ccb23259a94e695 (patch) | |
tree | 3bbb512037fd4c3aa7675f21a35ceb9d103d9c7b /sys/fs/tmpfs/tmpfs_subr.c | |
parent | f8127115e64c2ad1421af292d3da6968a928297c (diff) | |
download | FreeBSD-src-150b18f93d81fc7c1cfeaaef8ccb23259a94e695.zip FreeBSD-src-150b18f93d81fc7c1cfeaaef8ccb23259a94e695.tar.gz |
MFC r267060:
Allow shared locking for the tmpfs vnode.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_subr.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |