mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Document that null_nodeget() cannot take shared-locked lowervp due to
insmntque() requirements. Tested by: pho MFC after: 1 week
This commit is contained in:
parent
409b12c08a
commit
cec1d07726
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232304
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user