Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2025 22:43:49 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ea1652bc01c4 - main - vfs: remove a stale comment about unlock + unref relationship in vput
Message-ID:  <202509172243.58HMhnnD073224@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=ea1652bc01c4093eb4a8c6971c69a410883df189

commit ea1652bc01c4093eb4a8c6971c69a410883df189
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-09-17 22:40:24 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2025-09-17 22:43:34 +0000

    vfs: remove a stale comment about unlock + unref relationship in vput
    
    It does not hold since introduction of vnode state tracking, which
    validates unlock only happens after the target vnode is sorted out
    (fully constructed or aborted). See 829f0bcb5fe24bb5 ("vfs: add the
    concept of vnode state transitions").
---
 sys/kern/vfs_subr.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f86bda2aa6f0..fe299ecc9c56 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3567,11 +3567,6 @@ enum vput_op { VRELE, VPUT, VUNREF };
  * exclusive lock on the vnode, while it is legal to call here with only a
  * shared lock (or no locks). If locking the vnode in an expected manner fails,
  * inactive processing gets deferred to the syncer.
- *
- * XXX Some filesystems pass in an exclusively locked vnode and strongly depend
- * on the lock being held all the way until VOP_INACTIVE. This in particular
- * happens with UFS which adds half-constructed vnodes to the hash, where they
- * can be found by other code.
  */
 static void
 vput_final(struct vnode *vp, enum vput_op func)



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