Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 15:18:04 +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: r232304 - head/sys/fs/nullfs
Message-ID:  <201202291518.q1TFI4Ks032584@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Feb 29 15:18:04 2012
New Revision: 232304
URL: http://svn.freebsd.org/changeset/base/232304

Log:
  Document that null_nodeget() cannot take shared-locked lowervp due to
  insmntque() requirements.
  
  Tested by:	pho
  MFC after:	1 week

Modified:
  head/sys/fs/nullfs/null_subr.c

Modified: head/sys/fs/nullfs/null_subr.c
==============================================================================
--- head/sys/fs/nullfs/null_subr.c	Wed Feb 29 15:15:36 2012	(r232303)
+++ head/sys/fs/nullfs/null_subr.c	Wed Feb 29 15:18:04 2012	(r232304)
@@ -209,7 +209,11 @@ null_nodeget(mp, lowervp, vpp)
 	struct vnode *vp;
 	int error;
 
-	ASSERT_VOP_LOCKED(lowervp, "lowervp");
+	/*
+	 * The insmntque1() call below requires the exclusive lock on
+	 * the nullfs vnode.
+	 */
+	ASSERT_VOP_ELOCKED(lowervp, "lowervp");
 	KASSERT(lowervp->v_usecount >= 1, ("Unreferenced vnode %p\n", lowervp));
 
 	/* Lookup the hash firstly */



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