svn commit: r267346 - stable/10/sys/fs/tmpfs

Konstantin Belousov kib at FreeBSD.org
Wed Jun 11 03:59:15 UTC 2014


Author: kib
Date: Wed Jun 11 03:59:14 2014
New Revision: 267346
URL: http://svnweb.freebsd.org/changeset/base/267346

Log:
  MFC r267060:
  Allow shared locking for the tmpfs vnode.

Modified:
  stable/10/sys/fs/tmpfs/tmpfs_subr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- stable/10/sys/fs/tmpfs/tmpfs_subr.c	Tue Jun 10 23:22:17 2014	(r267345)
+++ stable/10/sys/fs/tmpfs/tmpfs_subr.c	Wed Jun 11 03:59:14 2014	(r267346)
@@ -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)


More information about the svn-src-all mailing list