mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
p9fs: Set vnode state in p9fs_vget_common()
Once a new vnode is visible from the mountpoint hash, we should set its state from VSTATE_UNINITIALIZED to VSTATE_CONSTRUCTED. I do not think this affects correctness at all, but the bug trips a check in vop_unlock_debugpost(), previously hidden under options DEBUG_VFS_LOCKS. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D51720 (cherry picked from commit e2ac6de6e4edc1c6e7bfdfb0ec8fcf62f46d503f)
This commit is contained in:
parent
b79aff126e
commit
af2a6e69d5
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ p9fs_vget_common(struct mount *mp, struct p9fs_node *np, int flags,
|
|||
STAILQ_INSERT_TAIL(&vses->virt_node_list, np, p9fs_node_next);
|
||||
np->flags |= P9FS_NODE_IN_SESSION;
|
||||
P9FS_UNLOCK(vses);
|
||||
|
||||
vn_set_state(vp, VSTATE_CONSTRUCTED);
|
||||
*vpp = vp;
|
||||
} else {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue