[Bug 293492] p9fs: VNASSERT failed: locked not true at /usr/src/sys/kern/vfs_subr.c:5816 (assert_vop_elocked)

[email protected]
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293492

--- Comment #3 from [email protected] ---
A commit in branch main references this bug:

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

commit 2b256f00aaee4713b8e6f0e3c0f3493065f710c4
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-03-05 12:35:43 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-03-10 12:44:34 +0000

    p9fs: locking improvements for p9fs_stat_vnode_dotl()

    If the vnode is share-locked:
    - Use vn_delayed_setsize() to avoid calling vnode_pager_setsize() with
      the vnode only shared locked.
    - Interlock the vnode to get exclusive mode for updating the node
      fields.

    Reciprocally, interlock the vnode in p9fs_getattr_dotl() to observe the
    consistent values on read.

    PR:     293492
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D55665

 sys/fs/p9fs/p9fs_vnops.c | 42 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.