Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2014 15:30:49 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267060 - head/sys/fs/tmpfs
Message-ID:  <201406041530.s54FUn7q059600@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Jun  4 15:30:49 2014
New Revision: 267060
URL: http://svnweb.freebsd.org/changeset/base/267060

Log:
  Allow shared locking for the tmpfs vnodes.
  
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/fs/tmpfs/tmpfs_subr.c

Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c	Wed Jun  4 15:18:46 2014	(r267059)
+++ head/sys/fs/tmpfs/tmpfs_subr.c	Wed Jun  4 15:30:49 2014	(r267060)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406041530.s54FUn7q059600>