diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2014-06-04 15:30:49 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2014-06-04 15:30:49 +0000 |
| commit | 60c5c866aab245a3b69b18f6707967031ac0da2a (patch) | |
| tree | 14ac19861b50497ca11b9e502689bb13b60dff1d /sys | |
| parent | 94fe9f959c04586f1f19759af3945534fbfab984 (diff) | |
Notes
Diffstat (limited to 'sys')
| -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 a9a690eec00d..b32ec7b195fa 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) |
